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

* fix: disable ruff hover correctly

* better fix
This commit is contained in:
Xie Zejian authored and GitHub committed 2023-08-29 17:59:18 +02:00
1 parent 377c0e397c
commit 451bde5b41
1 file changed
+10 -10
+10 -10
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,
},
},
},
{