mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 09:18:51 +02:00
feat(python): use new ruff
instead of ruff_lsp
(#3016)
This commit is contained in:
parent
5f92dc5304
commit
cd04b58fe3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue