1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-09-02 12:09:07 +00:00

[neovim] Update golang settings

This commit is contained in:
2023-10-28 17:49:56 +02:00
parent 6dee13061c
commit d05e572840
3 changed files with 18 additions and 1 deletions

View File

@@ -55,6 +55,20 @@ M.on_attach = function(client)
client.server_capabilities.hover = false
end
if client.name == "gopls" then
if not client.server_capabilities.semanticTokensProvider then
local semantic = client.config.capabilities.textDocument.semanticTokens
client.server_capabilities.semanticTokensProvider = {
full = true,
legend = {
tokenTypes = semantic.tokenTypes,
tokenModifiers = semantic.tokenModifiers,
},
range = true,
}
end
end
require("illuminate").on_attach(client)
end