Skip to content

Commit b39a9a1

Browse files
committed
trying basedpyright
1 parent 08b39f6 commit b39a9a1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lua/plugins/config/lsp/servers.lua

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,23 @@ function M.get_servers()
6161
},
6262

6363
-- Python Language Server
64-
pyright = {
64+
basedpyright = {
6565
settings = {
66-
python = {
66+
basedpyright = {
6767
analysis = {
6868
autoSearchPaths = true,
6969
diagnosticMode = 'openFilesOnly',
70+
typeCheckingMode = 'standard',
7071
useLibraryCodeForTypes = true,
71-
typeCheckingMode = 'basic',
72+
73+
diagnosticSeverityOverrides = {
74+
reportOptionalCall = 'none',
75+
reportOptionalSubscript = 'none',
76+
reportAttributeAccessIssue = 'none',
77+
reportUnknownMemberType = 'warning',
78+
reportUnknownVariableType = 'warning',
79+
reportUnknownAssignmentType = 'warning',
80+
},
7281
},
7382
},
7483
},

0 commit comments

Comments
 (0)