[update] removed the depercated LazyVim.lsp.on_attach(**) method Snacks.util.lsp.on(**)
This commit is contained in:
@@ -44,7 +44,7 @@ return {
|
||||
gopls = function(_, opts)
|
||||
-- workaround for gopls not supporting semanticTokensProvider
|
||||
-- https://github.com/golang/go/issues/54531#issuecomment-1464982242
|
||||
LazyVim.lsp.on_attach(function(client, _)
|
||||
Snacks.util.lsp.on({name="gopls"}, function (_, client)
|
||||
if not client.server_capabilities.semanticTokensProvider then
|
||||
local semantic = client.config.capabilities.textDocument.semanticTokens
|
||||
client.server_capabilities.semanticTokensProvider = {
|
||||
@@ -56,7 +56,7 @@ return {
|
||||
range = true,
|
||||
}
|
||||
end
|
||||
end, "gopls")
|
||||
end)
|
||||
-- end workaround
|
||||
end,
|
||||
},
|
||||
|
||||
@@ -41,11 +41,17 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
-- setup = {
|
||||
-- basedpyright = function()
|
||||
-- LazyVim.lsp.on_attach(function(client, _)
|
||||
-- client.server_capabilities.hoverProvider = true
|
||||
-- end, "basedpyright")
|
||||
-- },
|
||||
setup = {
|
||||
basedpyright = function()
|
||||
LazyVim.lsp.on_attach(function(client, _)
|
||||
require("snacks").util.lsp.on({ name = "basedpyright" }, function(_, client)
|
||||
client.server_capabilities.hoverProvider = true
|
||||
end, "basedpyright")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user