aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDionisio E Alonso <baco@users.noreply.github.com>2024-03-20 16:12:44 -0300
committerGitHub <noreply@github.com>2024-03-20 20:12:44 +0100
commitb04a8f716c8c8086cd1fdc17827284dd9e37b193 (patch)
tree61aa9deb1775e77b0047fc25a5a2a2446ec6082b
parentfeat: add markdown-oxide lsp (#378) (diff)
downloadmason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.tar
mason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.tar.gz
mason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.tar.bz2
mason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.tar.lz
mason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.tar.xz
mason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.tar.zst
mason-lspconfig-b04a8f716c8c8086cd1fdc17827284dd9e37b193.zip
feat: add basedpyright lsp (#379)
Co-authored-by: William Boman <william@redwill.se>
-rw-r--r--README.md1
-rw-r--r--doc/mason-lspconfig-mapping.txt1
-rw-r--r--doc/server-mapping.md1
-rw-r--r--lua/mason-lspconfig/mappings/filetype.lua2
-rw-r--r--lua/mason-lspconfig/mappings/server.lua1
5 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1da5e70..70ad356 100644
--- a/README.md
+++ b/README.md
@@ -305,6 +305,7 @@ local DEFAULT_SETTINGS = {
| Prisma | `prismals` |
| Puppet | `puppet` |
| PureScript | `purescriptls` |
+| Python | `basedpyright` |
| Python | `jedi_language_server` |
| Python | `pyre` |
| Python | `pyright` |
diff --git a/doc/mason-lspconfig-mapping.txt b/doc/mason-lspconfig-mapping.txt
index edf1031..9b4ad97 100644
--- a/doc/mason-lspconfig-mapping.txt
+++ b/doc/mason-lspconfig-mapping.txt
@@ -16,6 +16,7 @@ astro-language-server astro
autotools-language-server autotools_ls
awk-language-server awk_ls
azure-pipelines-language-server azure_pipelines_ls
+basedpyright basedpyright
bash-language-server bashls
beancount-language-server beancount
bicep-lsp bicep
diff --git a/doc/server-mapping.md b/doc/server-mapping.md
index f143e23..223f79a 100644
--- a/doc/server-mapping.md
+++ b/doc/server-mapping.md
@@ -13,6 +13,7 @@
| [autotools_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#autotools_ls) | [autotools-language-server](https://mason-registry.dev/registry/list#autotools-language-server) |
| [awk_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#awk_ls) | [awk-language-server](https://mason-registry.dev/registry/list#awk-language-server) |
| [azure_pipelines_ls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#azure_pipelines_ls) | [azure-pipelines-language-server](https://mason-registry.dev/registry/list#azure-pipelines-language-server) |
+| [basedpyright](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#basedpyright) | [basedpyright](https://mason-registry.dev/registry/list#basedpyright) |
| [bashls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#bashls) | [bash-language-server](https://mason-registry.dev/registry/list#bash-language-server) |
| [beancount](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#beancount) | [beancount-language-server](https://mason-registry.dev/registry/list#beancount-language-server) |
| [bicep](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#bicep) | [bicep-lsp](https://mason-registry.dev/registry/list#bicep-lsp) |
diff --git a/lua/mason-lspconfig/mappings/filetype.lua b/lua/mason-lspconfig/mappings/filetype.lua
index 502f698..084aa23 100644
--- a/lua/mason-lspconfig/mappings/filetype.lua
+++ b/lua/mason-lspconfig/mappings/filetype.lua
@@ -152,7 +152,7 @@ return {
pug = { "emmet_language_server", "emmet_ls" },
puppet = { "puppet" },
purescript = { "purescriptls" },
- python = { "ast_grep", "dprint", "jedi_language_server", "pylsp", "pylyzer", "pyre", "pyright", "ruff_lsp", "sourcery" },
+ python = { "ast_grep", "basedpyright", "dprint", "jedi_language_server", "pylsp", "pylyzer", "pyre", "pyright", "ruff_lsp", "sourcery" },
ql = { "codeqlls" },
quarto = { "ltex" },
r = { "r_language_server" },
diff --git a/lua/mason-lspconfig/mappings/server.lua b/lua/mason-lspconfig/mappings/server.lua
index ea60d43..f7c8366 100644
--- a/lua/mason-lspconfig/mappings/server.lua
+++ b/lua/mason-lspconfig/mappings/server.lua
@@ -16,6 +16,7 @@ M.lspconfig_to_package = {
["autotools_ls"] = "autotools-language-server",
["awk_ls"] = "awk-language-server",
["azure_pipelines_ls"] = "azure-pipelines-language-server",
+ ["basedpyright"] = "basedpyright",
["bashls"] = "bash-language-server",
["beancount"] = "beancount-language-server",
["bicep"] = "bicep-lsp",