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

This commit is contained in:
sankalp committed 2024-03-19 12:13:59 +05:45
1 parent 340b9fb799
commit af8f6d6d86
1 file changed
+15
@@ -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,