chore: uptodate v5

This commit is contained in:
huyjaky
2025-08-22 14:43:56 +07:00
commit e553f7585d
38 changed files with 1730 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
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 = {
basedpyright = {
disableLanguageServices = false,
disableOrganizeImports = true,
disableTaggedHints = true,
analysis = {
autoSearchPath = false,
logLevel = "Trace",
typeCheckingMode = "standard",
deprecateTypingAliases = false,
inlayHints = {
variableTypes = true,
functionReturnTypes = true,
callArgumentNames = true,
pytestParameters = true,
},
ignore = {
"unsloth_compiled_cache",
"__pycache__",
"__index__",
},
useLibraryCodeForTypes = true,
},
autoImportCompletions = false,
},
},
}

View File

@@ -0,0 +1,19 @@
-- return {
-- capabilities = {
-- offsetEncoding = "utf-8",
-- },
-- cmd = {
-- "clangd",
-- "--background-index",
-- "--clang-tidy",
-- "--all-scopes-completion",
-- "--header-insertion=iwyu",
-- "--completion-style=detailed",
-- "--fallback-style=Microsoft",
-- },
-- init_options = {
-- clangdFileStatus = true,
-- usePlaceholders = false,
-- completeUnimported = true,
-- },
-- }

View File

@@ -0,0 +1,31 @@
return {
init_options = {
completion = {
disableSnippets = true,
},
diagnostics = {
enable = false,
},
hover = {
enable = true,
},
workspace = {
-- environmentPath = "/home/duckq1u/miniconda3/envs/OCR3/bin/python",
environmentPath = vim.fn.exepath("python"),
ignore = {
"/home/duckq1u/miniconda3/envs/OCR3/lib/python3.11/site-packages/transformers/mode ls/albert/configuration_albert.py",
},
},
jediSettings = {
autoImportModules = {
"numpy",
"pandas",
"torch",
-- "torchmetrics",
-- "pytorch_lightning",
},
},
},
}

View File

@@ -0,0 +1,16 @@
return {
settings = {
pylsp = {
plugins = {
pyflakes = { enabled = false }, -- disable pyflakes
pycodestyle = { enabled = false }, -- disable pycodestyle
flake8 = { enabled = false }, -- disable flake8
yapf = { enabled = false }, -- disable yapf
mcabe = { enabled = false }, -- disable mccabe
pylsp_black = { enabled = false }, -- disable black
pylsp_mypy = { enabled = false }, -- disable mypy
pylsp_isort = { enabled = false }, -- disable isort
},
},
},
}

View File

@@ -0,0 +1,26 @@
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 = {
-- },
},
}

View File

@@ -0,0 +1,26 @@
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 = {
-- },
},
}