astro-nvim-v3 - archive v3
This commit is contained in:
34
lua/plugins/configs/lsp/config/basedpyright.lua
Normal file
34
lua/plugins/configs/lsp/config/basedpyright.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
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 = "openFilesOnly",
|
||||
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
19
lua/plugins/configs/lsp/config/clangd.lua
Normal file
19
lua/plugins/configs/lsp/config/clangd.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user