add bufls

This commit is contained in:
Yasuhiro Matsumoto
2022-08-22 08:52:56 +09:00
committed by mattn
parent 55731990d0
commit 65ddb94e4d
4 changed files with 41 additions and 2 deletions

View File

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

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

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

View File

@@ -818,12 +818,19 @@
}
],
"markdown": [
{
"command": "vscode-markdown-languageserver",
"url": "https://github.com/microsoft/vscode/tree/main/extensions/markdown-language-features/server",
"description": "Markdown Language Server",
"requires": [
"npm"
]
},
{
"command": "marksman",
"url": "https://github.com/artempyanykh/marksman",
"description": "Markdown LSP server providing completion, cross-references, diagnostics, and more.",
"requires": [
]
"requires": []
}
],
"nim": [
@@ -998,6 +1005,16 @@
]
}
],
"proto": [
{
"command": "bufls",
"url": "https://github.com/bufbuild/buf-language-server",
"description": "Prototype for a Protobuf language server compatible with Buf.",
"requires": [
"go"
]
}
],
"ps1": [
{
"command": "powershell-languageserver",

14
settings/bufls.vim Normal file
View File

@@ -0,0 +1,14 @@
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