diff options
author | Soispha <soispha@vhack.eu> | 2023-08-19 20:26:39 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-19 20:26:39 +0200 |
commit | 0a2432611e58fd28146d1a3f9ef3f881b1e373e3 (patch) | |
tree | 15061aaa56a6ba0e78a945f5c99a02ae91e5d749 /home-manager | |
parent | Fix(hm/conf/neovim/mappings): Turn lf start mapping into a function (diff) | |
download | nixos-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.nix | 2 |
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 |