aboutsummaryrefslogtreecommitdiff
path: root/settings/json-languageserver.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 17:49:14 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-25 17:49:14 +0900
commitc13d3dc6dd0808464e76fa4640e2c2c9eae9e40a (patch)
treeb5f80e9429173e72c51f190b884bc6dabaa6d129 /settings/json-languageserver.vim
parentb4f26edf58fc371221f91ae7a1acd10047bf2c24 (diff)
downloadvim-lsp-settings-c13d3dc6dd0808464e76fa4640e2c2c9eae9e40a.tar.gz
vim-lsp-settings-c13d3dc6dd0808464e76fa4640e2c2c9eae9e40a.tar.bz2
vim-lsp-settings-c13d3dc6dd0808464e76fa4640e2c2c9eae9e40a.zip
Add elm-language-server, json-languageserver
Diffstat (limited to 'settings/json-languageserver.vim')
-rw-r--r--settings/json-languageserver.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/json-languageserver.vim b/settings/json-languageserver.vim
new file mode 100644
index 0000000..626df64
--- /dev/null
+++ b/settings/json-languageserver.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_json_languageserver
+ au!
+ LspRegisterServer {
+ \ 'name': 'json-languageserver',
+ \ 'cmd': {server_info->lsp_settings#get('json-languageserver', 'cmd', [lsp_settings#exec_path('json-languageserver'), '--stdio'])},
+ \ 'root_uri':{server_info->lsp_settings#get('json-langserver', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))},
+ \ 'initialization_options': lsp_settings#get('json-languageserver', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('json-languageserver', 'whitelist', ['json']),
+ \ 'blacklist': lsp_settings#get('json-languageserver', 'blacklist', []),
+ \ 'config': lsp_settings#get('json-languageserver', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('json-languageserver', 'workspace_config', {}),
+ \ }
+augroup END