From 9be54b4646d2c13a4d3aa766c3ff2b496b5bd1dc Mon Sep 17 00:00:00 2001 From: coder3101 Date: Sat, 21 Dec 2024 22:13:30 +0530 Subject: [PATCH] Add support for protols --- README.md | 1 + doc/mason-lspconfig-mapping.txt | 1 + doc/server-mapping.md | 1 + lua/mason-lspconfig/mappings/filetype.lua | 2 +- lua/mason-lspconfig/mappings/server.lua | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6327061a5..964412d75 100644 --- a/README.md +++ b/README.md @@ -348,6 +348,7 @@ local DEFAULT_SETTINGS = { | Prisma | [`prismals`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#prismals) | | Protobuf | [`buf_ls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#buf_ls) | | Protobuf | [`pbls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#pbls) | +| Protobuf | [`protols`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#protols) | | Puppet | [`puppet`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#puppet) | | PureScript | [`purescriptls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#purescriptls) | | Python | [`ast_grep`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#ast_grep) | diff --git a/doc/mason-lspconfig-mapping.txt b/doc/mason-lspconfig-mapping.txt index 795c16154..935bc9767 100644 --- a/doc/mason-lspconfig-mapping.txt +++ b/doc/mason-lspconfig-mapping.txt @@ -138,6 +138,7 @@ pkgbuild-language-server pkgbuild_language_server powershell-editor-services powershell_es prisma-language-server prismals prosemd-lsp prosemd_lsp +protols protols psalm psalm puppet-editor-services puppet purescript-language-server purescriptls diff --git a/doc/server-mapping.md b/doc/server-mapping.md index b51218d10..34232fb8d 100644 --- a/doc/server-mapping.md +++ b/doc/server-mapping.md @@ -135,6 +135,7 @@ | [powershell_es](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#powershell_es) | [powershell-editor-services](https://mason-registry.dev/registry/list#powershell-editor-services) | | [prismals](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#prismals) | [prisma-language-server](https://mason-registry.dev/registry/list#prisma-language-server) | | [prosemd_lsp](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#prosemd_lsp) | [prosemd-lsp](https://mason-registry.dev/registry/list#prosemd-lsp) | +| [protols](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#protols) | [protols](https://mason-registry.dev/registry/list#protols) | | [psalm](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#psalm) | [psalm](https://mason-registry.dev/registry/list#psalm) | | [puppet](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#puppet) | [puppet-editor-services](https://mason-registry.dev/registry/list#puppet-editor-services) | | [purescriptls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#purescriptls) | [purescript-language-server](https://mason-registry.dev/registry/list#purescript-language-server) | diff --git a/lua/mason-lspconfig/mappings/filetype.lua b/lua/mason-lspconfig/mappings/filetype.lua index db9218415..476665c0f 100644 --- a/lua/mason-lspconfig/mappings/filetype.lua +++ b/lua/mason-lspconfig/mappings/filetype.lua @@ -157,7 +157,7 @@ return { plaintex = { "ltex", "texlab" }, postcss = { "tailwindcss", "unocss" }, prisma = { "prismals" }, - proto = { "buf_ls", "clangd", "pbls" }, + proto = { "buf_ls", "clangd", "pbls", "protols" }, ps1 = { "powershell_es" }, pug = { "emmet_language_server", "emmet_ls" }, puppet = { "puppet" }, diff --git a/lua/mason-lspconfig/mappings/server.lua b/lua/mason-lspconfig/mappings/server.lua index 73d9f9895..1774ff3fd 100644 --- a/lua/mason-lspconfig/mappings/server.lua +++ b/lua/mason-lspconfig/mappings/server.lua @@ -138,6 +138,7 @@ M.lspconfig_to_package = { ["powershell_es"] = "powershell-editor-services", ["prismals"] = "prisma-language-server", ["prosemd_lsp"] = "prosemd-lsp", + ["protols"] = "protols", ["psalm"] = "psalm", ["puppet"] = "puppet-editor-services", ["purescriptls"] = "purescript-language-server",