Neovim: Difference between revisions
Appearance
imported>P-h No edit summary |
imported>Teto reference the overlay and official doc |
||
| Line 17: | Line 17: | ||
}) | }) | ||
]; | ]; | ||
Alternatively you can use the neovim module (merged in september 2020). | |||
programs.neovim.enable = true; | |||
== To build neovim master == | |||
Use the official documentation: | |||
https://github.com/neovim/neovim/wiki/Building-Neovim#nix-or-nixos | |||
There is also an overlay available: | |||
https://github.com/mjlbach/neovim-nightly-overlay | |||
== See Also == | == See Also == | ||
[[Vim]] | [[Vim]] | ||
Revision as of 11:48, 15 October 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;
};
})
];
Alternatively you can use the neovim module (merged in september 2020).
programs.neovim.enable = true;
To build neovim master
Use the official documentation: https://github.com/neovim/neovim/wiki/Building-Neovim#nix-or-nixos
There is also an overlay available: https://github.com/mjlbach/neovim-nightly-overlay