-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathjsonnet-language-server.vim
18 lines (18 loc) · 1.18 KB
/
jsonnet-language-server.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Using https://github.com/mattn/vim-lsp-settings
"
augroup vim_lsp_settings_jsonnet_language_server
au!
LspRegisterServer {
\ 'name': 'jsonnet-language-server',
\ 'cmd': {server_info->lsp_settings#get('jsonnet-language-server', 'cmd', [lsp_settings#exec_path('jsonnet-language-server')]+lsp_settings#get('jsonnet-language-server', 'args', ['-t']))},
\ 'root_uri':{server_info->lsp_settings#get('jsonnet-language-server', 'root_uri', lsp_settings#root_uri('jsonnet-language-server'))},
\ 'initialization_options': lsp_settings#get('jsonnet-language-server', 'initialization_options', v:null),
\ 'allowlist': lsp_settings#get('jsonnet-language-server', 'allowlist', ['jsonnet']),
\ 'blocklist': lsp_settings#get('jsonnet-language-server', 'blocklist', []),
\ 'config': lsp_settings#get('jsonnet-language-server', 'config', lsp_settings#server_config('jsonnet-language-server')),
\ 'workspace_config': lsp_settings#get('jsonnet-language-server', 'workspace_config', {
\ 'jsonnet': {'lint': {'validProperties': []}},
\ }),
\ 'semantic_highlight': lsp_settings#get('jsonnet-language-server', 'semantic_highlight', {}),
\ }
augroup END