diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index 466ffc84..b45227dd 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -50,7 +50,3 @@ if vim.fn.has("nvim-0.10") == 1 then end o.conceallevel = 2 - --- LSP Server to use for Python. --- Set to "basedpyright" to use basedpyright instead of pyright. -vim.g.lazyvim_python_lsp = "basedpyright" diff --git a/.config/nvim/lua/plugins/extras/lang/python-extended.lua b/.config/nvim/lua/plugins/extras/lang/python-extended.lua index e51ac712..7736a368 100644 --- a/.config/nvim/lua/plugins/extras/lang/python-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/python-extended.lua @@ -1,3 +1,7 @@ +-- LSP Server to use for Python. +-- Set to "basedpyright" to use basedpyright instead of pyright. +vim.g.lazyvim_python_lsp = "basedpyright" + return { { import = "lazyvim.plugins.extras.lang.python" }, { import = "lazyvim.plugins.extras.lang.python-semshi" }, @@ -5,6 +9,27 @@ return { "neovim/nvim-lspconfig", opts = { servers = { + ---@type lspconfig.options.basedpyright + basedpyright = { + settings = { + basedpyright = { + analysis = { + diagnosticSeverityOverrides = { + reportUnusedCallResult = "information", + reportUnusedExpression = "information", + reportUnknownMemberType = "none", + reportUnknownLambdaType = "none", + reportUnknownParameterType = "none", + reportMissingParameterType = "none", + reportUnknownVariableType = "none", + reportUnknownArgumentType = "none", + reportAny = "none", + }, + }, + }, + }, + }, + ---@type lspconfig.options.pyright pyright = { settings = { verboseOutput = true,