fix(nvim): proper formatting, do not return early
This commit is contained in:
parent
f5ea655c36
commit
77a1d2a4cd
@ -14,10 +14,10 @@ vim.api.nvim_create_autocmd('BufWrite', {
|
||||
for _, nf_type in ipairs(neoformat_types) do
|
||||
if filetype == nf_type then
|
||||
vim.cmd('Neoformat')
|
||||
return
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
vim.cmd('lua vim.lsp.buf.format({ async = true })')
|
||||
vim.cmd('lua vim.lsp.buf.format({ async = true })')
|
||||
end,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user