working declarative nvim
need to add plugins
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
userName,
|
||||
userEmail,
|
||||
ghostty,
|
||||
nvf,
|
||||
...
|
||||
}: let
|
||||
# Have a file sturcture that holds all the configuration files that can't be configured by Nix
|
||||
@@ -13,7 +14,7 @@
|
||||
};
|
||||
in {
|
||||
# Import sub modules
|
||||
imports = map (module: import module {inherit lib pkgs dirs userName userEmail ghostty;}) [
|
||||
imports = map (module: import module {inherit lib pkgs dirs userName userEmail ghostty nvf;}) [
|
||||
./atuin.nix
|
||||
./shell.nix
|
||||
./packages
|
||||
|
@@ -1,14 +1,22 @@
|
||||
{dirs, ...}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
vimAlias = true;
|
||||
};
|
||||
{ nvf, ...}: {
|
||||
imports = [
|
||||
nvf.homeManagerModules.default
|
||||
];
|
||||
|
||||
xdg.configFile = {
|
||||
nvim = {
|
||||
onChange = "nvim --headless -c 'if exists(\":LuaCacheClear\") | :LuaCacheClear' +quitall";
|
||||
source = dirs.defaults + /nvim;
|
||||
};
|
||||
};
|
||||
programs.nvf.enable = true;
|
||||
|
||||
### --- OLD NEOVIM CONFIG BASED ON LUA CONFIG ---
|
||||
#
|
||||
# programs.neovim = {
|
||||
# enable = true;
|
||||
# defaultEditor = true;
|
||||
# vimAlias = true;
|
||||
# };
|
||||
#
|
||||
# xdg.configFile = {
|
||||
# nvim = {
|
||||
# onChange = "nvim --headless -c 'if exists(\":LuaCacheClear\") | :LuaCacheClear' +quitall";
|
||||
# source = dirs.defaults + /nvim;
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
Reference in New Issue
Block a user