Misterio77 / nix-colors

Modules and schemes to make theming with Nix awesome.
GNU General Public License v3.0
465 stars 38 forks source link

vim plugin usage is unavaialbe in vim, only in neovim #27

Closed thecatwasnot closed 1 year ago

thecatwasnot commented 1 year ago

In home-manager, programs.vim.plugins expects a package from vimPlugins, neovim.plugins will take a submodule . If you try to use this with vim.plugins, you'll get an error:

error: A definition for option `programs.vim.plugins."[definition 1-entry 2]"' is not of type `string or package'. Definition values:
       - In `/nix/store/ijy10wfrhv0iinskckx0wzp95igb5zcb-source/home-manager/cole/cli/vim.nix':
           {
             config = "colorscheme nix-material-darker";
             plugin = <derivation /nix/store/h3lr56hl0l5hi2bksaiabyx2v38d2lhx-nix-material-darker.vim.drv>;
           }

Documentation should make this clearer. Happy to take any thoughts/suggestions and make a pr.

Misterio77 commented 1 year ago

Hello, thanks for letting me know.

Oh, yeah, this is a documentation problem. I'll push a fix soonish

thecatwasnot commented 1 year ago

No problem really, just wanting to document the error/fix for folks confused like I was :slightly_smiling_face: Thanks for all the work, helped me get nixos up and running as a desktop.