fix: disable ruff hover correctly

This commit is contained in:
fecet 2023-08-22 16:54:00 +08:00
parent 566049aa4a
commit f7cb662b8c

View file

@ -9,14 +9,10 @@ return {
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
pyright = {},
ruff_lsp = {},
},
},
setup = {
ruff_lsp = function()
opts = function(_, opts)
opts.servers["ruff_lsp"] = {}
opts.servers["pyright"] = {}
require("lazyvim.util").on_attach(function(client, _)
if client.name == "ruff_lsp" then
-- Disable hover in favor of Pyright
@ -25,7 +21,6 @@ return {
end)
end,
},
},
{
"nvim-neotest/neotest",
optional = true,