Skip to content

Commit

Permalink
fix: neovim onchange events
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Nov 28, 2023
1 parent bab05bc commit edd7fb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/home/cli-apps/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ in
extraPython3Packages = ps: [ ps.pip ];
};

# TODO: Convert to custom nixos neovim config
xdg.configFile = {
"astronvim" = {
onChange = "${getExe pkgs.neovim} --headless +quitall";
onChange = "NVIM_APPNAME=astronvim ${getExe pkgs.neovim} --headless \"+Lazy! sync\" +qa";
source = lib.cleanSourceWith {
filter = name: _type:
let
Expand All @@ -96,7 +95,7 @@ in
recursive = true;
};
"lazyvim" = {
onChange = "${getExe pkgs.neovim} --headless +quitall";
onChange = "NVIM_APPNAME=lazyvim ${getExe pkgs.neovim} --headless \"+Lazy! sync\" +qa";
source = lib.cleanSourceWith {
filter = name: _type:
let
Expand All @@ -108,7 +107,7 @@ in
recursive = true;
};
"lunarvim" = {
onChange = "${getExe pkgs.neovim} --headless +quitall";
onChange = "NVIM_APPNAME=lunarvim ${getExe pkgs.neovim} --headless \"+Lazy! sync\" +qa";
source = lib.cleanSourceWith {
filter = name: _type:
let
Expand All @@ -119,8 +118,9 @@ in
};
recursive = true;
};
# TODO: Convert to custom nixos neovim config
"nvim" = {
onChange = "${getExe pkgs.neovim} --headless +quitall";
onChange = "${getExe pkgs.neovim} --headless \"+Lazy! sync\" +qa";
source = lib.cleanSourceWith {
filter = name: _type:
let
Expand Down

0 comments on commit edd7fb0

Please sign in to comment.