refactor: LazyVim.lsp.on_attach
This commit is contained in:
@ -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,
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user