Untitled

 avatar
unknown
lua
2 years ago
463 B
2
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