vim/lsp: minor change to mason-lspconfig setup
This commit is contained in:
parent
7b4e7462b7
commit
d4660c3da4
1 changed files with 31 additions and 32 deletions
|
@ -51,12 +51,11 @@ M.config = function()
|
|||
|
||||
require('lspconfig.ui.windows').default_options = border
|
||||
require('mason').setup { ui = border }
|
||||
require('mason-lspconfig').setup()
|
||||
require("mason-lspconfig").setup_handlers {
|
||||
require('mason-lspconfig').setup {
|
||||
handlers = {
|
||||
--[[ default = ]] function(server)
|
||||
require('lspconfig')[server].setup(opts)
|
||||
end,
|
||||
|
||||
lua_ls = function()
|
||||
require('lspconfig').lua_ls.setup(extend(opts, {
|
||||
settings = {
|
||||
|
@ -76,7 +75,6 @@ M.config = function()
|
|||
},
|
||||
}))
|
||||
end,
|
||||
|
||||
omnisharp = function()
|
||||
require('lspconfig').omnisharp.setup(extend(opts, {
|
||||
-- Show unimported types and add`using` directives.
|
||||
|
@ -89,6 +87,7 @@ M.config = function()
|
|||
sdk_include_prereleases = false,
|
||||
}))
|
||||
end,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue