From 0a2432611e58fd28146d1a3f9ef3f881b1e373e3 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 19 Aug 2023 20:26:39 +0200 Subject: Fix(hm/conf/neovim/autocmds): Correctly apply the if conditional --- home-manager/soispha/config/neovim/nixvim/autocmds/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home-manager') 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 -- cgit 1.4.1