move to mason_null_ls

This commit is contained in:
Thomas Ruoff
2023-04-26 22:05:04 +02:00
parent 477bc1da79
commit 0c79182e03
4 changed files with 70 additions and 42 deletions

View File

@@ -1,38 +0,0 @@
return {
"mhartington/formatter.nvim",
lazy = false,
init = function()
vim.api.nvim_create_augroup('_formatter', { clear = true });
vim.api.nvim_create_autocmd('BufWritePost', {
command = 'FormatWrite',
group = '_formatter',
})
end,
opts = function()
local filetypes = require('formatter.filetypes')
return {
logging = false,
log_level = vim.log.levels.WARN,
filetype = {
lua = {
filetypes.lua.stylua,
},
javascript = {
filetypes.javascript.eslint_d,
},
javascriptreact = {
filetypes.javascript.eslint_d,
},
json = {
filetypes.json.prettierd,
},
rust = {
filetypes.rust.rustfmt,
},
['*'] = {
filetypes.any.remove_trailing_whitespace,
},
},
}
end
}