From f7123b0759ec411c761f0602f801c3a5b4d16f25 Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Mon, 20 Oct 2025 17:04:18 +0530 Subject: [PATCH] fix(neovim): Python `basedpyright` LSP settings --- common/.config/nvim/lsp/basedpyright.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 common/.config/nvim/lsp/basedpyright.lua diff --git a/common/.config/nvim/lsp/basedpyright.lua b/common/.config/nvim/lsp/basedpyright.lua new file mode 100644 index 0000000..bfee7b9 --- /dev/null +++ b/common/.config/nvim/lsp/basedpyright.lua @@ -0,0 +1,16 @@ +return { + cmd = { "basedpyright" }, + filetypes = { "python" }, + settings = { + basedpyright = { + analysis = { + typeCheckingMode = "basic", + diagnosticMode = "openFilesOnly", + autoSearchPaths = true, + useLibraryCodeForTypes = true, + }, + disableOrganizeImports = true, -- let ruff do it + }, + python = { analysis = { ignore = { "*" } } }, -- let ruff do it + }, +}