Update buf

Signed-off-by: bufdev <bufdev-github@buf.build>
This commit is contained in:
bufdev
2025-10-20 13:12:38 -04:00
committed by mattn
parent a54b96b92b
commit 01d48cc7c1
6 changed files with 2 additions and 33 deletions

View File

@@ -144,7 +144,6 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| PHP | intelephense | Yes | Yes |
| PHP | psalm-language-server | Yes | Yes |
| OCaml | ocaml-lsp | UNIX Only | Yes |
| Protobuf | bufls | Yes | Yes |
| Protobuf | buf | Yes | Yes |
| Puppet | puppet-languageserver | Yes | Yes |
| PureScript | purescript-language-server | Yes | Yes |

View File

@@ -1,3 +0,0 @@
@echo off
call "%~dp0\go_install.cmd" github.com/bufbuild/buf-language-server/cmd/bufls@latest

View File

@@ -1,5 +0,0 @@
#!/bin/sh
set -e
"$(dirname "$0")/go_install.sh" github.com/bufbuild/buf-language-server/cmd/bufls@latest

View File

@@ -1301,18 +1301,10 @@
}
],
"proto": [
{
"command": "bufls",
"url": "https://github.com/bufbuild/buf-language-server",
"description": "Prototype for a Protobuf language server compatible with Buf.",
"requires": [
"go"
]
},
{
"command": "buf",
"url": "https://github.com/bufbuild/buf",
"description": "Protobuf language server compatible with Buf.",
"description": "Protobuf language server.",
"requires": [
"go"
]

View File

@@ -2,7 +2,7 @@ augroup vim_lsp_settings_buf
au!
LspRegisterServer {
\ 'name': 'buf',
\ 'cmd': {server_info->lsp_settings#get('buf', 'cmd', [lsp_settings#exec_path('buf')]+lsp_settings#get('buf', 'args', ['beta', 'lsp']))},
\ 'cmd': {server_info->lsp_settings#get('buf', 'cmd', [lsp_settings#exec_path('buf')]+lsp_settings#get('buf', 'args', ['lsp', 'serve']))},
\ 'root_uri':{server_info->lsp_settings#get('buf', 'root_uri', lsp_settings#root_uri('buf'))},
\ 'initialization_options': lsp_settings#get('buf', 'initialization_options', {}),
\ 'allowlist': lsp_settings#get('buf', 'allowlist', ['proto']),

View File

@@ -1,14 +0,0 @@
augroup vim_lsp_settings_bufls
au!
LspRegisterServer {
\ 'name': 'bufls',
\ 'cmd': {server_info->lsp_settings#get('bufls', 'cmd', [lsp_settings#exec_path('bufls')]+lsp_settings#get('bufls', 'args', ['serve']))},
\ 'root_uri':{server_info->lsp_settings#get('bufls', 'root_uri', lsp_settings#root_uri('bufls'))},
\ 'initialization_options': lsp_settings#get('bufls', 'initialization_options', {}),
\ 'allowlist': lsp_settings#get('bufls', 'allowlist', ['proto']),
\ 'blocklist': lsp_settings#get('bufls', 'blocklist', []),
\ 'config': lsp_settings#get('bufls', 'config', lsp_settings#server_config('bufls')),
\ 'workspace_config': lsp_settings#get('bufls', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('bufls', 'semantic_highlight', {}),
\ }
augroup END