configurating pyrefly

This commit is contained in:
huyjaky
2026-01-04 10:30:04 +07:00
parent 70f0c7fe5d
commit d409682cc6
7 changed files with 92 additions and 108 deletions

View File

@@ -0,0 +1,42 @@
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 = {
python = {
disableLanguageServices = true,
disableOrganizeImports = true,
disableTaggedHints = true,
openFilesOnly = true,
useLibraryCodeForTypes = false,
analysis = {
useLibraryCodeForTypes = false,
autoImportCompletions = false,
diagnosticMode = "openFilesOnly",
typeCheckingMode = "off",
autoSearchPath = false,
logLevel = "Error",
verboseOutput = false,
pythonPlatform = "Linux",
exclude = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"**/.venv/**",
"__index__",
"**/.*",
},
ignore = {
"**/unsloth_compiled_cache/**",
"**/__pycache__/**",
"__index__",
"**/.venv/**",
"**/*.ipynb",
},
},
},
},
}