This is related to the workspace diagnostics, it enables it for go

This commit is contained in:
2025-07-11 12:22:03 +03:00
parent c475d014bc
commit 57fb46d77f

View File

@@ -72,7 +72,7 @@ return {
semanticTokens = true,
},
},
on_attach = function(client, _)
on_attach = function(client, bufnr)
-- workaround for gopls not supporting semanticTokensProvider
-- https://github.com/golang/go/issues/54531#issuecomment-1464982242
if not client.server_capabilities.semanticTokensProvider then
@@ -87,5 +87,7 @@ return {
}
end
-- end workaround
require('workspace-diagnostics').populate_workspace_diagnostics(client, bufnr)
end,
}