This commit is contained in:
mix3@サタデーナイトフィーバー
2025-08-07 19:36:42 +09:00
committed by mattn
parent 7634ca48bc
commit d64d120bc7
5 changed files with 31 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| 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 |
| Python | pyls-all (pyls with dependencies) | Yes | Yes |

View File

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

5
installer/install-buf.sh Executable file
View File

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

View File

@@ -1286,6 +1286,14 @@
"requires": [
"go"
]
},
{
"command": "buf",
"url": "https://github.com/bufbuild/buf",
"description": "Protobuf language server compatible with Buf.",
"requires": [
"go"
]
}
],
"ps1": [

14
settings/buf.vim Normal file
View File

@@ -0,0 +1,14 @@
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']))},
\ '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']),
\ 'blocklist': lsp_settings#get('buf', 'blocklist', []),
\ 'config': lsp_settings#get('buf', 'config', lsp_settings#server_config('buf')),
\ 'workspace_config': lsp_settings#get('buf', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('buf', 'semantic_highlight', {}),
\ }
augroup END