Jump to content

Neovim: Difference between revisions

101 bytes removed ,  23 September 2023
Setting default editor: use defaultEditor opt instead of env var
imported>Badele
m (Fix typo)
imported>Efskap
(Setting default editor: use defaultEditor opt instead of env var)
Line 111: Line 111:
</syntaxhighlight>
</syntaxhighlight>


Similarly to the Home Manager module, to set Neovim as your default editor you have to set the <code>EDITOR</code> environment variable like this:
To set Neovim as your default editor:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
environment.variables.EDITOR = "nvim";
programs.neovim = {
  defaultEditor = true;
};
</syntaxhighlight>
</syntaxhighlight>


Anonymous user