modules/neoformat: use full command name

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-30 10:42:51 +03:00
parent b1b27db1cb
commit 6086cea1d4
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

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