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:
@ -7,7 +7,7 @@ local servers = {
|
||||
"jdtls",
|
||||
"jsonls",
|
||||
"lua_ls",
|
||||
"pyright",
|
||||
"basedpyright",
|
||||
"ruff_lsp",
|
||||
"terraformls",
|
||||
"yamlls",
|
||||
|
21
.config/nvim/lua/plugins/lsp/settings/basedpyright.lua
Normal file
21
.config/nvim/lua/plugins/lsp/settings/basedpyright.lua
Normal 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"),
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
return {
|
||||
cmd = { "/home/dani/.local/pipx/venvs/basedpyright/bin/basedpyright-langserver", "--stdio" },
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user