summaryrefslogtreecommitdiff
path: root/lsp/basedpyright.lua
diff options
context:
space:
mode:
authorLibravatar Mora Unie Youer <[email protected]>2025-11-29 14:33:41 +0300
committerLibravatar Mora Unie Youer <[email protected]>2025-11-29 14:41:10 +0300
commit2eb2d0ee421c9f02389224d6bf443243fc32a9ef (patch)
tree23f9e2fc6951d22767bc4b5b3de97c3bf3e83700 /lsp/basedpyright.lua
parentfix: `multicursor.nvim` now supports counts (diff)
downloadneovim-configuration-2eb2d0ee421c9f02389224d6bf443243fc32a9ef.tar.gz
neovim-configuration-2eb2d0ee421c9f02389224d6bf443243fc32a9ef.tar.bz2
neovim-configuration-2eb2d0ee421c9f02389224d6bf443243fc32a9ef.tar.lz
neovim-configuration-2eb2d0ee421c9f02389224d6bf443243fc32a9ef.tar.xz
neovim-configuration-2eb2d0ee421c9f02389224d6bf443243fc32a9ef.tar.zst
neovim-configuration-2eb2d0ee421c9f02389224d6bf443243fc32a9ef.zip
feat: add `basedpyright` for Python files
Diffstat (limited to 'lsp/basedpyright.lua')
-rw-r--r--lsp/basedpyright.lua23
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",
+ },
+ },
+ },
+}