mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
move to mason_null_ls
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user