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