neovim: Disable eslint and tsserver formatting
This commit is contained in:
parent
f74e7256c0
commit
75db857db4
1 changed files with 13 additions and 0 deletions
|
|
@ -378,10 +378,23 @@ return {
|
|||
})
|
||||
end
|
||||
|
||||
local default_setup_nofmt = function(server_name)
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
require("lspconfig")[server_name].setup({
|
||||
on_attach = on_attach,
|
||||
settings = lsp_settings[server_name] or {},
|
||||
capabilities = capabilities,
|
||||
})
|
||||
end
|
||||
|
||||
mason_lspconfig.setup_handlers({
|
||||
-- This is the default handler for servers not named below.
|
||||
default_setup,
|
||||
|
||||
["eslint"] = default_setup_nofmt,
|
||||
["tsserver"] = default_setup_nofmt,
|
||||
|
||||
["gopls"] = function()
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue