1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 19:49:25 +00:00

[neovim] change pyright LSP server by basedpyright

This commit is contained in:
2024-03-22 17:21:22 +01:00
parent a4f1186c35
commit c6c9440d60
5 changed files with 44 additions and 32 deletions

View File

@ -7,7 +7,7 @@ local servers = {
"jdtls",
"jsonls",
"lua_ls",
"pyright",
"basedpyright",
"ruff_lsp",
"terraformls",
"yamlls",

View File

@ -0,0 +1,21 @@
return {
settings = {
basedpyright = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = true,
autoImportCompletions = true,
diagnosticsMode = "openFilesOnly", -- workspace, openFilesOnly
diagnosticSeverityOverrides = {
typeCheckingMode = "standard", -- off, basic, standard, strict, all
reportAny = false,
reportDeprecated = "information",
reportMissingTypeStubs = "information",
reportUnknownMemberType = "information",
reportUnknownVariableType = "information",
},
},
},
},
pythonPath = vim.fn.exepath("python3"),
}

View File

@ -1,11 +0,0 @@
return {
cmd = { "/home/dani/.local/pipx/venvs/basedpyright/bin/basedpyright-langserver", "--stdio" },
settings = {
python = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = true,
},
},
},
}