feat(python): use new ruff instead of ruff_lsp (#3016)

This commit is contained in:
Phúc H. Lê Khắc 2024-04-22 08:40:09 +01:00 committed by GitHub
parent 5f92dc5304
commit cd04b58fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ return {
[lsp] = { [lsp] = {
enabled = true, enabled = true,
}, },
ruff_lsp = { ruff = {
keys = { keys = {
{ {
"<leader>co", "<leader>co",
@ -47,9 +47,9 @@ return {
}, },
}, },
setup = { setup = {
ruff_lsp = function() ruff = function()
LazyVim.lsp.on_attach(function(client, _) LazyVim.lsp.on_attach(function(client, _)
if client.name == "ruff_lsp" then if client.name == "ruff" 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