Improve perform

This commit is contained in:
huyjaky
2025-10-26 16:37:04 +07:00
parent bad1ed5cb2
commit 3eda456458
5 changed files with 28 additions and 26 deletions

View File

@@ -9,15 +9,16 @@ return {
disableLanguageServices = false,
disableOrganizeImports = true,
disableTaggedHints = true,
openFilesOnly = true,
analysis = {
autoSearchPath = true,
useLibraryCodeForTypes = true,
useLibraryCodeForTypes = false,
logLevel = "Trace",
typeCheckingMode = "standard",
typeCheckingMode = "basic",
deprecateTypingAliases = false,
diagnosticMode = "openFilesOnly",
inlayHints = {
variableTypes = true,
-- functionReturnTypes = true,
genericTypes = true,
callArgumentNames = true,
},

View File

@@ -1,26 +1,20 @@
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,
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 = "standard",
diagnosticMode = "openFilesOnly",
typeCheckingMode = "basic",
autoSearchPath = true,
-- diagnosticSeverityOverrides = false,
logLevel = "Trace",
logLevel = "Error",
},
},
-- python = {
-- },
},
}