⚙️ config(nvim): add some pyright options to show diagnostics and search on only the open files
This commit is contained in:
parent
c3046ead12
commit
b69b5c3193
1 changed files with 15 additions and 0 deletions
|
@ -5,6 +5,21 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
pyright = {
|
||||
settings = {
|
||||
verboseOutput = true,
|
||||
autoImportCompletion = true,
|
||||
python = {
|
||||
analysis = {
|
||||
typeCheckingMode = "strict",
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
indexing = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
ruff_lsp = {
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = function() end,
|
||||
|
|
Loading…
Add table
Reference in a new issue