refactor: LazyVim.lsp.on_attach

This commit is contained in:
Folke Lemaitre
2024-06-08 08:11:28 +02:00
parent 6098a36d92
commit 8f7ee56dab
6 changed files with 32 additions and 42 deletions

View File

@ -58,11 +58,9 @@ return {
setup = {
[ruff] = function()
LazyVim.lsp.on_attach(function(client, _)
if client.name == ruff then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end)
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end, ruff)
end,
},
},