Untitled
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