From 6086cea1d4c1d9e1f9990b86ddb40a05d594b10c Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Tue, 30 Apr 2024 10:42:51 +0300 Subject: [PATCH] modules/neoformat: use full command name --- modules/plugins/style/neoformat.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/plugins/style/neoformat.nix b/modules/plugins/style/neoformat.nix index 91dfe96..84d6c4d 100644 --- a/modules/plugins/style/neoformat.nix +++ b/modules/plugins/style/neoformat.nix @@ -40,10 +40,10 @@ let cfg = config.plugins.style.neoformat; in vim.namedCmd = lib.mkIf cfg.autoformat.enable { autoformat = '' - aug fmt - au! - au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry - aug END + augroup autoformat + autocmd! + autocmd BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry + augroup END ''; };