astro-nvim-v3 - fix linter

This commit is contained in:
huyjaky
2025-01-02 21:15:25 +07:00
parent fa8ffc5e10
commit 193a915d3a
10 changed files with 61 additions and 126 deletions

View File

@@ -1,34 +1,35 @@
-- 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 = {
-- analysis = {
-- -- diagnosticMode = "workspace",
-- diagnosticMode = "off",
-- typeCheckingMode = "basic",
-- autoImportCompletions = true,
-- autoSearchPath = true,
-- inlayHints = {
-- variableTypes = true,
-- functionReturnTypes = true,
-- callArgumentNames = true,
-- pytestParameters = true,
-- },
-- useLibraryCodeForTypes = true,
-- diagnosticSeverityOverrides = {
-- reportUnusedImport = "information",
-- reportUnusedFunction = "information",
-- reportUnusedVariable = "information",
-- reportGeneralTypeIssues = "none",
-- reportOptionalMemberAccess = "none",
-- reportOptionalSubscript = "none",
-- reportPrivateImportUsage = "none",
-- },
-- },
-- },
-- },
-- }
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 = {
pyright = {enabled = false},
analysis = {
-- diagnosticMode = "workspace",
diagnosticMode = "openFilesOnly",
typeCheckingMode = "basic",
autoImportCompletions = false,
autoSearchPath = true,
inlayHints = {
variableTypes = true,
functionReturnTypes = true,
callArgumentNames = true,
pytestParameters = true,
},
useLibraryCodeForTypes = true,
diagnosticSeverityOverrides = {
reportUnusedImport = "information",
reportUnusedFunction = "information",
reportUnusedVariable = "information",
-- reportGeneralTypeIssues = "none",
-- reportOptionalMemberAccess = "none",
-- reportOptionalSubscript = "none",
-- reportPrivateImportUsage = "none",
},
},
},
},
}