about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-19 20:26:39 +0200
committerSoispha <soispha@vhack.eu>2023-08-19 20:26:39 +0200
commit0a2432611e58fd28146d1a3f9ef3f881b1e373e3 (patch)
tree15061aaa56a6ba0e78a945f5c99a02ae91e5d749 /home-manager
parentFix(hm/conf/neovim/mappings): Turn lf start mapping into a function (diff)
downloadnixos-config-0a2432611e58fd28146d1a3f9ef3f881b1e373e3.tar.gz
nixos-config-0a2432611e58fd28146d1a3f9ef3f881b1e373e3.zip
Fix(hm/conf/neovim/autocmds): Correctly apply the if conditional
Diffstat (limited to '')
-rw-r--r--home-manager/soispha/config/neovim/nixvim/autocmds/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix b/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix
index a34c9b99..c2b64ae3 100644
--- a/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix
+++ b/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix
@@ -10,7 +10,7 @@
         event = ["BufWritePre"];
         pattern = ["*"];
         command = ''
-          ks | if search("\\s\\+$", 'n') != 0 :%s/\s\+//g endif | 's";
+          ks | if search("\\s\\+$", 'n') != 0 | :%s/\s\+//g | endif | 's
         '';
         description = ''
           Remove trailing whitespace on safe