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 ''; };