diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig.lua | 4 | ||||
| -rw-r--r-- | lua/lspconfig/configs/buf_ls.lua | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig.lua b/lua/lspconfig.lua index 76c3c4ac..5ab7d865 100644 --- a/lua/lspconfig.lua +++ b/lua/lspconfig.lua @@ -35,6 +35,10 @@ local aliases = { to = 'ts_ls', version = '0.2.1', }, + bufls = { + to = 'bufls', + version = '0.2.1', + }, } ---@return Alias diff --git a/lua/lspconfig/configs/buf_ls.lua b/lua/lspconfig/configs/buf_ls.lua new file mode 100644 index 00000000..2ce9fc74 --- /dev/null +++ b/lua/lspconfig/configs/buf_ls.lua @@ -0,0 +1,16 @@ +return { + default_config = { + cmd = { 'buf', 'beta', 'lsp', '--timeout=0', '--log-format=text' }, + filetypes = { 'proto' }, + root_dir = require('lspconfig.util').root_pattern('buf.yaml', '.git'), + }, + docs = { + description = [[ +https://github.com/bufbuild/buf + +buf beta lsp included in the cli itself + +buf beta lsp is a Protobuf language server compatible with Buf modules and workspaces +]], + }, +} |
