diff options
author | mattn <mattn.jp@gmail.com> | 2020-01-31 13:00:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 13:00:03 +0900 |
commit | f7f7863e01cb5e8e2a928ee4e05da8b46ae24a4b (patch) | |
tree | 69811900e06307336615043b43b80b2b74010df1 /settings | |
parent | 34202e81809d4a8cd41a6b922f23d6252a50ce98 (diff) | |
parent | b9dda7671357730d92e78a150ee2103b2923b720 (diff) | |
download | vim-lsp-settings-f7f7863e01cb5e8e2a928ee4e05da8b46ae24a4b.tar.gz vim-lsp-settings-f7f7863e01cb5e8e2a928ee4e05da8b46ae24a4b.tar.bz2 vim-lsp-settings-f7f7863e01cb5e8e2a928ee4e05da8b46ae24a4b.zip |
Merge pull request #138 from mattn/r-languageserver
Add r-languageserver
Diffstat (limited to 'settings')
-rw-r--r-- | settings/r-languageserver.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/settings/r-languageserver.vim b/settings/r-languageserver.vim new file mode 100644 index 0000000..aace440 --- /dev/null +++ b/settings/r-languageserver.vim @@ -0,0 +1,14 @@ +augroup vimlsp_settings_r_languageserver + au! + LspRegisterServer { + \ 'name': 'r-languageserver', + \ 'cmd': {server_info->lsp_settings#get('r-languageserver', 'cmd', ['R', '--slave', '-e', 'languageserver::run()'])}, + \ 'root_uri':{server_info->lsp_settings#get('r-languageserver', 'root_uri', lsp_settings#root_uri(g:lsp_settings_root_markers))}, + \ 'initialization_options': lsp_settings#get('r-languageserver', 'initialization_options', v:null), + \ 'whitelist': lsp_settings#get('r-languageserver', 'whitelist', ['r']), + \ 'blacklist': lsp_settings#get('r-languageserver', 'blacklist', []), + \ 'config': lsp_settings#get('r-languageserver', 'config', {}), + \ 'workspace_config': lsp_settings#get('r-languageserver', 'workspace_config', {}), + \ } +augroup END + |