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