dinhhuy258 / vim-local-history

A Neovim plugin for maintaining local history of files.
https://dinhhuy258.github.io/vim-local-history/
MIT License
32 stars 2 forks source link

Unable to install the plugin using lazy vim #4

Open GeordyJ opened 10 months ago

GeordyJ commented 10 months ago

I wanted to install this plugin with lazy vim but was unable to do so. Here is my lua file in lua/plugins for the plugin

return {
  "dinhhuy258/vim-local-history",
  opts = {
    branch = "master",
    -- do = ":UpdateRemotePlugins",
    local_history_path = "~/.config/nvim/.local-history",
    -- local_history_max_changes = 100,
  },
}
dinhhuy258 commented 10 months ago

Hi Sorry for my late response. Could you please share the screenshot with the error? Currently, I am using lazy as my plugin manager and it still works well..

eltribehou commented 2 months ago

@dinhhuy258 I'll answer since i'm facing the same problem. The symptom is that the LocalHistoryToggle command is not available.

I am using this lazyvim plugin file to load the plugin :

  return {
  "dinhhuy258/vim-local-history",
  branch = "master",
  build = ":UpdateRemotePlugins",
}

The python module is installed:

> pip freeze
greenlet==3.0.3
msgpack==1.0.8
pynvim==0.5.0

I get no special errors or warning from nvim when starting up. It did install the plugin on first run. I tried running :UpdateRemotePlugins manually, which outputs this message:

remote/host: python3 host registered plugins ['local-history']
remote/host: generated rplugin manifest: /Users/sam/.local/share/nvim/rplugin.vim

But :LocalHistoryToggle is still unknown: E492: Not an editor command: LocalHistoryToggle

dinhhuy258 commented 1 month ago

Hi @eltribehou could you please try to run following commands.

  1. pip install --user --upgrade pynvim
  2. Restart nvim and run :UpdateRemotePlugins
  3. Restart nvim and try to check if LocalHistoryToggle command exists.

Thank you