21 lines
511 B
Lua
21 lines
511 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 "python3"
|
|
end,
|
|
settings = {
|
|
pyright = {
|
|
disableLanguageServices = false,
|
|
disableOrganizeImports = true,
|
|
analysis = {
|
|
diagnosticMode = "openFilesOnly",
|
|
typeCheckingMode = "basic",
|
|
autoSearchPath = true,
|
|
-- diagnosticSeverityOverrides = false,
|
|
logLevel = "Error",
|
|
},
|
|
},
|
|
},
|
|
}
|