chore(nvim): fixed mason formatters, config

This commit is contained in:
2024-12-16 05:04:01 +02:00
parent 8e84c3aef7
commit 8a52c9a97e
3 changed files with 279 additions and 130 deletions

View File

@@ -104,15 +104,4 @@ autocmd({ 'BufRead', 'BufNewFile' }, {
command = 'set filetype=sshconfig',
})
-- Format on save, unless disabled
autocmd('BufWritePre', {
group = augroup('Format', { clear = true }),
pattern = '*', -- All files
callback = function()
if not vim.g.disable_autoformat then
vim.lsp.buf.format({ async = false })
end
end,
})
-- vim: ts=2 sts=2 sw=2 et