Jump to content

Neovim: Difference between revisions

52 bytes added ,  11 October 2023
Update plugin example to a different plugin since syntax highlighting is upstreamed
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>vim-nix</code> to support syntax highlighting for Nix files
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 = [ vim-nix ];
       start = [ ctrlp ];
     };
     };
   };
   };
Anonymous user