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

34 lines
914 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 "python"
end,
settings = {
basedpyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
disableTaggedHints = true,
analysis = {
autoSearchPath = true,
useLibraryCodeForTypes = true,
logLevel = "Trace",
typeCheckingMode = "standard",
deprecateTypingAliases = false,
inlayHints = {
variableTypes = true,
-- functionReturnTypes = true,
genericTypes = true,
callArgumentNames = true,
},
ignore = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"__index__",
},
autoImportCompletions = false,
},
},
},
}