⚙️ config(nvim): add some pyright options to show diagnostics and search on only the open files

This commit is contained in:
Sergio Laín 2024-03-19 00:55:36 +01:00
parent c3046ead12
commit b69b5c3193
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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,