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

Not working in Neovim #79

Open
exoess opened this issue Jun 19, 2023 · 4 comments
Open

Not working in Neovim #79

exoess opened this issue Jun 19, 2023 · 4 comments

Comments

@exoess
Copy link

exoess commented Jun 19, 2023

I installed Colortemplate (using packer) but then when I try and run the :Colortemplate command it says "E492: Not an editor command: Colortemplate", not sure why this is happening, I know I have it installed, maybe it's a problem with packer or Neovim but I'm not sure.

@lifepillar
Copy link
Owner

:Colortemplate is a filetype-specific command: it is available only in buffers whose filetype is colortemplate. Try saving a new buffer with the .colortemplate suffix. Does that solve you problem?

@exoess
Copy link
Author

exoess commented Jun 19, 2023

It worked but gave a different error, "E329: No menu "WinBar"

@lifepillar
Copy link
Owner

lifepillar commented Jun 19, 2023

Neovim does not support WinBar (edit: as supported by Vim, that is via nmenu). This is not detected automatically by the plugin, but you may add this to your vimrc:

let g:colortemplate_toolbar = 0

@lifepillar
Copy link
Owner

It seems that Neovim (I'm using v0.9.1) does support window toolbars (it includes the patch that implements them: that's why the script did think that the toolbar would work), but it uses a different mechanism to define them—there is a winbar setting whereas Vim uses nmenu.

As I am not using Neovim, I cannot guarantee that every feature of Colortemplate works as expected with it. There was a time when I tested the scripts in both Vim and Neovim, but the differences are now too many for me to try and reconcile them. If someone cares, I accept PRs.

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