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 {
|
vim.namedCmd = lib.mkIf cfg.autoformat.enable {
|
||||||
autoformat = ''
|
autoformat = ''
|
||||||
aug fmt
|
augroup autoformat
|
||||||
au!
|
autocmd!
|
||||||
au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
|
autocmd BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
|
||||||
aug END
|
augroup END
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue