Untitled

mail@pastecode.io avatar
unknown
lua
a year ago
463 B
1
Indexable
Never
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