⚙️ 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",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
|
pyright = {
|
||||||
|
settings = {
|
||||||
|
verboseOutput = true,
|
||||||
|
autoImportCompletion = true,
|
||||||
|
python = {
|
||||||
|
analysis = {
|
||||||
|
typeCheckingMode = "strict",
|
||||||
|
autoSearchPaths = true,
|
||||||
|
useLibraryCodeForTypes = true,
|
||||||
|
diagnosticMode = "openFilesOnly",
|
||||||
|
indexing = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
ruff_lsp = {
|
ruff_lsp = {
|
||||||
handlers = {
|
handlers = {
|
||||||
["textDocument/publishDiagnostics"] = function() end,
|
["textDocument/publishDiagnostics"] = function() end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue