Files
AstroVim_Config/lua/plugins/configs/lsp/config/pyright.lua
2026-01-12 10:56:51 +07:00

42 lines
1.1 KiB
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 = {
python = {
disableLanguageServices = true,
disableOrganizeImports = true,
disableTaggedHints = true,
openFilesOnly = true,
useLibraryCodeForTypes = false,
analysis = {
useLibraryCodeForTypes = false,
autoImportCompletions = false,
diagnosticMode = "off",
typeCheckingMode = "off",
autoSearchPath = false,
logLevel = "Error",
verboseOutput = false,
pythonPlatform = "Linux",
exclude = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"**/.venv/**",
"__index__",
"**/.*",
},
ignore = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"__index__",
"**/.venv/**",
"**/*.ipynb",
},
},
},
},
}