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

View File

@ -28,7 +28,7 @@ return {
[lsp] = {
enabled = true,
},
ruff_lsp = {
ruff = {
keys = {
{
"<leader>co",
@ -47,9 +47,9 @@ return {
},
},
setup = {
ruff_lsp = function()
ruff = function()
LazyVim.lsp.on_attach(function(client, _)
if client.name == "ruff_lsp" then
if client.name == "ruff" then
-- Disable hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end