mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix: disable ruff hover correctly
This commit is contained in:
parent
566049aa4a
commit
f7cb662b8c
1 changed files with 11 additions and 16 deletions
|
|
@ -9,22 +9,17 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = function(_, opts)
|
||||||
servers = {
|
opts.servers["ruff_lsp"] = {}
|
||||||
pyright = {},
|
opts.servers["pyright"] = {}
|
||||||
ruff_lsp = {},
|
|
||||||
},
|
require("lazyvim.util").on_attach(function(client, _)
|
||||||
},
|
if client.name == "ruff_lsp" then
|
||||||
setup = {
|
-- Disable hover in favor of Pyright
|
||||||
ruff_lsp = function()
|
client.server_capabilities.hoverProvider = false
|
||||||
require("lazyvim.util").on_attach(function(client, _)
|
end
|
||||||
if client.name == "ruff_lsp" then
|
end)
|
||||||
-- Disable hover in favor of Pyright
|
end,
|
||||||
client.server_capabilities.hoverProvider = false
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-neotest/neotest",
|
"nvim-neotest/neotest",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue