Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install the plugin using lazy vim #4

Open
GeordyJ opened this issue Dec 7, 2023 · 3 comments
Open

Unable to install the plugin using lazy vim #4

GeordyJ opened this issue Dec 7, 2023 · 3 comments

Comments

@GeordyJ
Copy link

GeordyJ commented Dec 7, 2023

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
Copy link
Owner

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
Copy link

@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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants