19 lines
337 B
Nix
19 lines
337 B
Nix
{...}: let
|
|
dirs = {
|
|
defaults = ../defaults;
|
|
};
|
|
in {
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
vimAlias = true;
|
|
};
|
|
|
|
xdg.configFile = {
|
|
nvim = {
|
|
onChange = "nvim --headless -c 'if exists(\":LuaCacheClear\") | :LuaCacheClear' +quitall";
|
|
source = dirs.defaults + /nvim;
|
|
};
|
|
};
|
|
}
|