better fix

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

View file

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