Files
AstroVim_Config/lua/plugins/configs/lsp/config/pyright.lua
2025-10-26 16:37:04 +07:00

21 lines
511 B
Lua

return {
before_init = function(_, c)
if not c.settings then c.settings = {} end
if not c.settings.python then c.settings.python = {} end
c.settings.python.pythonPath = vim.fn.exepath "python3"
end,
settings = {
pyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
analysis = {
diagnosticMode = "openFilesOnly",
typeCheckingMode = "basic",
autoSearchPath = true,
-- diagnosticSeverityOverrides = false,
logLevel = "Error",
},
},
},
}