34 lines
911 B
Lua
34 lines
911 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,
|
|
useLibraryCodeForTypes = true,
|
|
analysis = {
|
|
autoSearchPath = false,
|
|
logLevel = "Trace",
|
|
typeCheckingMode = "standard",
|
|
deprecateTypingAliases = false,
|
|
inlayHints = {
|
|
variableTypes = true,
|
|
callArgumentNames = false,
|
|
functionReturnTypes = true,
|
|
genericTypes = true,
|
|
},
|
|
ignore = {
|
|
"**/unsloth_compiled_cache/**",
|
|
"**/__pycache__/**",
|
|
"__index__",
|
|
},
|
|
autoImportCompletions = false,
|
|
},
|
|
},
|
|
},
|
|
}
|