fix(nvim): proper formatting, do not return early

This commit is contained in:
Price Hiller 2022-06-04 21:45:47 -05:00
parent f5ea655c36
commit 77a1d2a4cd

View File

@ -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,
})