Files
AstroVim_Config/lua/plugins/configs/lsp/config/basedpyright.lua
2025-10-26 18:14:56 +07:00

39 lines
988 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 = {
basedpyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
disableTaggedHints = true,
useLibraryCodeForTypes = false,
openFilesOnly = true,
analysis = {
autoSearchPath = false,
useLibraryCodeForTypes = false,
logLevel = "Trace",
typeCheckingMode = "basic",
deprecateTypingAliases = false,
diagnosticMode = "openFilesOnly",
inlayHints = {
variableTypes = true,
genericTypes = true,
callArgumentNames = false,
},
ignore = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"__index__",
},
autoImportCompletions = false,
},
},
},
}