diff options
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/basedpyright.lua | 23 |
1 files changed, 23 insertions, 0 deletions
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", + }, + }, + }, +} |
