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

@@ -26,6 +26,17 @@ vim.api.nvim_create_autocmd('FileType', {
group = '_general',
})
vim.api.nvim_create_autocmd('BufWritePre', {
callback = function()
vim.lsp.buf.format({
filter = function(client)
return client.name ~= "tsserver"
end
})
end,
group = "_general",
})
vim.api.nvim_create_autocmd('FileType', {
pattern = 'gitcommit,markdown',
command = 'setlocal wrap spell',

View File

@@ -28,10 +28,6 @@ vim.api.nvim_create_autocmd('LspAttach', {
if client.name ~= 'tsserver' then
return
end
vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
vim.cmd 'EslintFixAll'
end, { desc = 'Format current buffer with Eslint' })
end,
group = '_bcr',
})