From 2eb2d0ee421c9f02389224d6bf443243fc32a9ef Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Sat, 29 Nov 2025 14:33:41 +0300 Subject: feat: add `basedpyright` for Python files --- lsp/basedpyright.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lsp/basedpyright.lua (limited to 'lsp/basedpyright.lua') diff --git a/lsp/basedpyright.lua b/lsp/basedpyright.lua new file mode 100644 index 0000000..79ff625 --- /dev/null +++ b/lsp/basedpyright.lua @@ -0,0 +1,23 @@ +return { + cmd = { "basedpyright-langserver", "--stdio" }, + filetypes = { "python" }, + root_markers = { + "pyrightconfig.json", + "pyproject.toml", + "setup.py", + "setup.cfg", + "requirements.txt", + "Pipfile", + ".git", + }, + + settings = { + basedpyright = { + analysis = { + autoSearchPaths = true, + useLibraryCodeForTypes = true, + diagnosticMode = "openFilesOnly", + }, + }, + }, +} -- cgit v1.2.3-70-g09d2