diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 17:49:14 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 17:49:14 +0900 |
commit | c13d3dc6dd0808464e76fa4640e2c2c9eae9e40a (patch) | |
tree | b5f80e9429173e72c51f190b884bc6dabaa6d129 /settings | |
parent | b4f26edf58fc371221f91ae7a1acd10047bf2c24 (diff) | |
download | vim-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')
-rw-r--r-- | settings/elm-language-server.vim | 13 | ||||
-rw-r--r-- | settings/json-languageserver.vim | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/settings/elm-language-server.vim b/settings/elm-language-server.vim new file mode 100644 index 0000000..8a65f89 --- /dev/null +++ b/settings/elm-language-server.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_elm_language_server + au! + LspRegisterServer { + \ 'name': 'elm-language-server', + \ 'cmd': {server_info->lsp_settings#get('elm-language-server', 'cmd', [lsp_settings#exec_path('elm-language-server')])}, + \ 'root_uri':{server_info->lsp_settings#get('elm-language-server', '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('elm-language-server', 'initialization_options', {"diagnostics": "true"}), + \ 'whitelist': lsp_settings#get('elm-language-server', 'whitelist', ['elm', 'elm.tsx']), + \ 'blacklist': lsp_settings#get('elm-language-server', 'blacklist', []), + \ 'config': lsp_settings#get('elm-language-server', 'config', {}), + \ 'workspace_config': lsp_settings#get('elm-language-server', 'workspace_config', {}), + \ } +augroup END 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 |