aboutsummaryrefslogtreecommitdiff
path: root/setting
diff options
context:
space:
mode:
Diffstat (limited to 'setting')
-rw-r--r--setting/eclipse-jdt-ls.vim12
-rw-r--r--setting/emmylua-ls.vim12
2 files changed, 24 insertions, 0 deletions
diff --git a/setting/eclipse-jdt-ls.vim b/setting/eclipse-jdt-ls.vim
new file mode 100644
index 0000000..5a6221b
--- /dev/null
+++ b/setting/eclipse-jdt-ls.vim
@@ -0,0 +1,12 @@
+augroup vimlsp_settings_eclipse_jdt_ls
+ au!
+ autocmd User lsp_setup call lsp#register_server({
+ \ 'name': 'eclipse-jdt-ls',
+ \ 'cmd': lsp_settings#get('eclipse-jdt-ls', 'cmd', {server_info->[lsp_settings#exec_path('eclipse-jdt-ls')]}),
+ \ 'initialization_options': lsp_settings#get('eclipse-jdt-ls', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('eclipse-jdt-ls', 'whitelist', ['java']),
+ \ 'blacklist': lsp_settings#get('eclipse-jdt-ls', 'blacklist', []),
+ \ 'config': lsp_settings#get('eclipse-jdt-ls', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('eclipse-jdt-ls', 'workspace_config', {}),
+ \ })
+augroup END
diff --git a/setting/emmylua-ls.vim b/setting/emmylua-ls.vim
new file mode 100644
index 0000000..08f94ac
--- /dev/null
+++ b/setting/emmylua-ls.vim
@@ -0,0 +1,12 @@
+augroup vimlsp_settings_emmylua_ls
+ au!
+ autocmd User lsp_setup call lsp#register_server({
+ \ 'name': 'emmylua-ls',
+ \ 'cmd': lsp_settings#get('emmylua-ls', 'cmd', {server_info->[lsp_settings#exec_path('emmylua-ls')]}),
+ \ 'initialization_options': lsp_settings#get('emmylua-ls', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('emmylua-ls', 'whitelist', ['lua']),
+ \ 'blacklist': lsp_settings#get('emmylua-ls', 'blacklist', []),
+ \ 'config': lsp_settings#get('emmylua-ls', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('emmylua-ls', 'workspace_config', {}),
+ \ })
+augroup END