11 lines
401 B
Lua
11 lines
401 B
Lua
|
-- override the LSP setup handler function based on server name
|
||
|
return {
|
||
|
-- first function changes the default setup handler
|
||
|
function(server, opts) require("lspconfig")[server].setup(opts) end,
|
||
|
-- keys for a specific server name will be used for that LSP
|
||
|
sumneko_lua = function(server, opts)
|
||
|
-- custom sumneko_lua setup handler
|
||
|
require("lspconfig")["sumneko_lua"].setup(opts)
|
||
|
end,
|
||
|
}
|