mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
fix(python): disable ruff hover correctly (#1365)
* fix: disable ruff hover correctly * better fix
This commit is contained in:
parent
377c0e397c
commit
451bde5b41
1 changed files with 10 additions and 10 deletions
|
@ -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,
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue