lifepillar / vim-colortemplate

The Toolkit for Vim Color Scheme Designers!
915 stars 27 forks source link

Not working in Neovim #79

Open brainlessbitch opened 1 year ago

brainlessbitch commented 1 year ago

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 commented 1 year ago

: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?

brainlessbitch commented 1 year ago

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

lifepillar commented 1 year ago

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 commented 1 year ago

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.