better fix

This commit is contained in:
fecet 2023-08-25 13:20:41 +08:00
parent f7cb662b8c
commit a0cf9de8f6

View file

@ -9,17 +9,22 @@ return {
}, },
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = function(_, opts) opts = {
opts.servers["ruff_lsp"] = {} servers = {
opts.servers["pyright"] = {} 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",