config(nvim): add some pyright options to show diagnostics and search on only the open files
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user