nvim1/lua/lsp/basedpyright.lua

38 lines
1.0 KiB
Lua

return {
-- File types that should automatically attach this LSP server
filetypes = { "python" },
-- Root directory markers - LSP will search for these files/directories
-- to determine the project root. Nested arrays indicate equal priority.
-- The first match wins within each priority level.
root_markers = {
"pyproject.toml",
"setup.py",
"setup.cfg",
"requirements.txt",
"pyrightconfig.json",
".git",
".hg",
},
-- Server-specific settings (varies by language server)
-- Check your language server's documentation for available options
settings = {
basedpyright = {
analysis = {
autoImportCompletions = true,
ignorePatterns = { "*.pyi" },
diagnosticSeverityOverrides = {
reportAny = false,
reportExplicitAny = false,
},
typeCheckingMode = "standard",
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = "workspace",
disableOrganizeImports = true,
},
},
},
}