fix(python): disable ruff hover correctly (#1365)

* fix: disable ruff hover correctly

* better fix
This commit is contained in:
Xie Zejian
2023-08-29 23:59:18 +08:00
committed by GitHub
parent 377c0e397c
commit 451bde5b41

View File

@ -14,16 +14,16 @@ return {
pyright = {},
ruff_lsp = {},
},
},
setup = {
ruff_lsp = function()
require("lazyvim.util").on_attach(function(client, _)
if client.name == "ruff_lsp" then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end)
end,
setup = {
ruff_lsp = function()
require("lazyvim.util").on_attach(function(client, _)
if client.name == "ruff_lsp" then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end)
end,
},
},
},
{