Untitled
unknown
lua
3 years ago
463 B
6
Indexable
local servers = {
lua_ls = {
settings = {
Lua = {
workspace = {
checkThirdParty = false,
},
completion = { callSnippet = "Replace" },
},
},
},
gopls = {},
}
for serv_name , serv_config in pairs(servers) do
serv_config = vim.tbl_deep_extend("force", {
capabilities = vim.deepcopy(capabilities),
on_attach = on_attach,
}, serv_config)
require("lspconfig")[serv_name].setup(serv_config)
end
Editor is loading...