Skip to content

Commit a003630

Browse files
pyright win ig?
1 parent 944eeb0 commit a003630

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

lua/modules/lsp/settings/main.lua

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ end
4949
local pyright = {
5050
on_attach = on_attach,
5151
settings = {
52+
pyright = {
53+
disableOrganizeImports = false,
54+
},
5255
python = {
5356
analysis = {
5457
indexing = true,
5558
typecheckingmode = "basic",
56-
diagnosticmode = "openfilesonly",
59+
-- diagnosticmode = "openfilesonly",
60+
diagnosticmode = "workspace",
5761
inlayhints = {
5862
variabletypes = true,
5963
functionreturntypes = true,
@@ -67,10 +71,31 @@ local pyright = {
6771
},
6872
},
6973
},
74+
--[[ settings = {
75+
python = {
76+
analysis = {
77+
indexing = true,
78+
typecheckingmode = "basic",
79+
-- diagnosticmode = "openfilesonly",
80+
diagnosticmode = "workspace",
81+
inlayhints = {
82+
variabletypes = true,
83+
functionreturntypes = true,
84+
},
85+
stubpath = vim.fn.expand("$home/typings"),
86+
diagnosticseverityoverrides = {
87+
reportunusedimport = "information",
88+
reportunusedfunction = "information",
89+
reportunusedvariable = "information",
90+
},
91+
},
92+
},
93+
}, ]]
7094
}
7195

7296
local jedi = {
7397
on_attach = on_attach,
98+
capabilities = capabilities,
7499
settings = {
75100
python = {
76101
analysis = {
@@ -110,7 +135,7 @@ local jedi = {
110135
},
111136
}
112137

113-
local use_pyright = false
138+
local use_pyright = true
114139
if use_pyright then
115140
require("lspconfig").pyright.setup(pyright)
116141
else

0 commit comments

Comments
 (0)