Neovim: Difference between revisions
imported>Efskap Setting default editor: use defaultEditor opt instead of env var |
imported>Onny Update plugin example to a different plugin since syntax highlighting is upstreamed |
||
Line 89: | Line 89: | ||
Instead, you can use the <code>programs.neovim.configure</code> option as described [https://search.nixos.org/options?show=programs.neovim.configure&type=packages&query=neovim here]. | Instead, you can use the <code>programs.neovim.configure</code> option as described [https://search.nixos.org/options?show=programs.neovim.configure&type=packages&query=neovim here]. | ||
The following example configures RC commands and enables the plugin <code> | The following example configures RC commands and enables the plugin <code>ctrlp</code> to support fuzzy file search (see [https://github.com/ctrlpvim/ctrlp.vim homepage] on how to use it) | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 105: | Line 105: | ||
''; | ''; | ||
packages.myVimPackage = with pkgs.vimPlugins; { | packages.myVimPackage = with pkgs.vimPlugins; { | ||
start = [ | start = [ ctrlp ]; | ||
}; | }; | ||
}; | }; |