27 lines
543 B
Lua
27 lines
543 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 = {
|
|
pyright = {
|
|
disableLanguageServices = false,
|
|
disableOrganizeImports = true,
|
|
analysis = {
|
|
-- diagnosticMode = "openFilesOnly",
|
|
typeCheckingMode = "standard",
|
|
autoSearchPath = true,
|
|
-- diagnosticSeverityOverrides = false,
|
|
logLevel = "Trace",
|
|
},
|
|
},
|
|
-- python = {
|
|
-- },
|
|
},
|
|
}
|