Vim: Difference between revisions
imported>Mickours Add python3 vim support |
imported>Mschonfinkel Added a vim-plug section and updated the Adding new plugins one |
||
| Line 106: | Line 106: | ||
vimrcConfig.pathogen.knownPlugins = vimPlugins; # optional | vimrcConfig.pathogen.knownPlugins = vimPlugins; # optional | ||
vimrcConfig.pathogen.pluginNames = [ "vim-addon-nix" "youcompleteme" ]; | vimrcConfig.pathogen.pluginNames = [ "vim-addon-nix" "youcompleteme" ]; | ||
</syntaxhighlight> | |||
=== Using Vim-Plug as manager === | |||
<syntaxhighlight lang="nix"> | |||
vimrcConfig.plug.plugins = with pkgs.vimPlugins; [vim-addon-nix youcompleteme]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 112: | Line 118: | ||
* Check https://github.com/NixOS/nixpkgs/tree/master/pkgs/misc/vim-plugins | * Check https://github.com/NixOS/nixpkgs/tree/master/pkgs/misc/vim-plugins | ||
* Add your plugin to ./vim-plugin-names | * Add your plugin to ./vim-plugin-names | ||
* Generate via <code> | * Generate via <code>./update.py</code> | ||
* If you need to add additional code/patches to the generated code, add those lines to <code>pkgs/misc/vim-plugins/vim2nix/additional-nix-code</code> and rerun <code> | * If you need to add additional code/patches to the generated code, add those lines to <code>pkgs/misc/vim-plugins/vim2nix/additional-nix-code</code> and rerun <code>./update.py</code>. They will be included in the generated code. | ||