working declarative nvim

need to add plugins
This commit is contained in:
2025-08-10 01:52:46 -04:00
parent 13fc210f8b
commit 7d76c105c1
4 changed files with 133 additions and 16 deletions

View File

@@ -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

View File

@@ -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;
# };
# };
}