Neovim: Difference between revisions

From NixOS Wiki
imported>P-h
No edit summary
imported>P-h
No edit summary
Line 3: Line 3:
== Configure Neovim as the default Editor ==
== Configure Neovim as the default Editor ==
Add this to your <code>configuration.nix</code>
Add this to your <code>configuration.nix</code>
<code>environment.variables.EDITOR = "nvim";</code>
<code>environment.variables.EDITOR = "nvim";</code>


== Set Neovim as <code>vi</code> and <code>vim</code> ==
== Set Neovim as <code>vi</code> and <code>vim</code> ==
Add this to your <code>configuration.nix</code>
   nixpkgs.overlays = [
   nixpkgs.overlays = [
     (self: super: {
     (self: super: {

Revision as of 18:41, 24 March 2020

Configure Neovim as the default Editor

Add this to your configuration.nix

environment.variables.EDITOR = "nvim";

Set Neovim as vi and vim

Add this to your configuration.nix

 nixpkgs.overlays = [
   (self: super: {
     neovim = super.neovim.override {
       viAlias = true;
       vimAlias = true;
     };
   })
 ];

See Also

Vim