modules/neoformat: use full command name
This commit is contained in:
parent
b1b27db1cb
commit
6086cea1d4
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue