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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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