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

Semshi/Wilder conflict #197

Open
mjbrowns opened this issue Jan 8, 2024 · 6 comments
Open

Semshi/Wilder conflict #197

mjbrowns opened this issue Jan 8, 2024 · 6 comments

Comments

@mjbrowns
Copy link

mjbrowns commented Jan 8, 2024

So I love the Wilder popup etc, but I really am not thrilled with the python syntax highlighting. I'm using neovim with packer, and have both wilder and semshi set up via lua.

When I fire up neovim to edit a python file I get this:

remote/host: python3 host registered plugins ['semshi', 'wilder']
remote/host: generated rplugin manifest: /home/mbrown/.local/share/nvim/rplugin.vim

I've been reading through stuff all morning and have no idea how to resolve this. I'd like to turn off the wilder syntax highlighter but either I'm clueless or I can't find it in the documentation other than some obscure references to python that don't seem to have anything to do with highlighting.

@wookayin
Copy link

This is normal. Both of semshi and wilder can be registered to rplugin manifest. What's "the problem" you're running into?

@mjbrowns
Copy link
Author

Hmm. Okay, well...I guess then if that's normal, I'd have to ask if there's a way to suppress the notice I get every time I edit a python module that announces the two registrations. I'm not surprised it would tell me the first time but every time is really annoying.

@wookayin
Copy link

:UpdateRemotePlugins should be called only once as a part of build or installing plugins (after updating or installing plugins), not on normal command/keymap use.

@mjbrowns
Copy link
Author

mjbrowns commented Jan 15, 2024

Ok. So, taking your very insightful comments, I now have things working properly. It seems that my issue really was the question of how to correctly configure this using the packer plugin manager.

I suggest adding an entry in the README.md on installation with packer.

Based on what I have so far, I suggest:

Add to your plugins.lua (or whatever file you use to install your plugins):

use {'numirias/semshi', ft = 'python'} 

Then, ignoring a variety of nvim startup errors:

  1. Run PackerSync (Or PackerInstall)
  2. Run UpdateRemotePlugins
    • Important! Must be done while Semshi is loaded; since it's lazy loaded you need to edit a python file to properly UpdateRemotePlugins!

Restart nvim and profit!

@mjbrowns
Copy link
Author

Consider this closed.

@wookayin
Copy link

wookayin commented Jan 15, 2024

See also #184 #109, etc. Unfortunately this repository is abandoned at the moment, and I am not a maintainer of this repo, so I can't add the user guide to README. Please close this issue from your end, thanks.

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

2 participants