From cea7fd6e0b48627d67d6cf515f06358183fd90e1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 28 Sep 2023 16:17:07 -0500 Subject: [PATCH] refactor(nvim): improve pyright config --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index 1aad8203..1a033f1e 100644 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -332,6 +332,12 @@ return { -- NOTE: PYTHON LSP lspconfig.pyright.setup({ + python = { + analysis = { + diagnosticMode = "workspace", + typeCheckingMode = "strict" + } + }, capabilities = lsp_capabilities, on_attach = on_attach })