Talk:Vim: Difference between revisions

From NixOS Wiki
imported>Ariutta
finding plugin names
 
imported>Ariutta
mNo edit summary
Line 10: Line 10:
     ];
     ];


But that didn't work, because vam didn't accept "github:sbdchd/neoformat" as a name. It took some trial and error to find that I actually needed to instead use "neoformat", which is the name as specified in [https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/default.nix default.nix].
But that didn't work, because vam didn't accept "github:sbdchd/neoformat" as a name. It took some trial and error to find that I instead needed to use "neoformat", which is the name as specified in [https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/default.nix default.nix].


Should this page tell users to just check default.nix, or maybe they should [https://nixos.org/nixos/packages.html#neoformat search nix packages] and use whatever is after "nixos.vimPlugins."?
Should this page tell users to just check default.nix, or maybe they should [https://nixos.org/nixos/packages.html#neoformat search nix packages] or use "nix-env -qaP .*neoformat.*" and use whatever is after "nixos.vimPlugins."?

Revision as of 22:15, 21 December 2017

Plugin Names

It'd be great to make it easier for users to find the name of the plugin they want. When I just now tried doing this, I initially thought I could use the "names" listed in vim-plugin-names, so I tried this:

   vimrcConfig.vam.pluginDictionaries = [
       { names = [
           # Here you can place all your vim plugins
           # They are installed managed by `vam` (a vim plugin manager)
           "github:sbdchd/neoformat"
       ]; }
   ];

But that didn't work, because vam didn't accept "github:sbdchd/neoformat" as a name. It took some trial and error to find that I instead needed to use "neoformat", which is the name as specified in default.nix.

Should this page tell users to just check default.nix, or maybe they should search nix packages or use "nix-env -qaP .*neoformat.*" and use whatever is after "nixos.vimPlugins."?