mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add bufls
This commit is contained in:
committed by
mattn
parent
55731990d0
commit
65ddb94e4d
3
installer/install-bufls.cmd
Normal file
3
installer/install-bufls.cmd
Normal 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
5
installer/install-bufls.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
"$(dirname "$0")/go_install.sh" github.com/bufbuild/buf-language-server/cmd/bufls@latest
|
||||
@@ -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
14
settings/bufls.vim
Normal 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
|
||||
Reference in New Issue
Block a user