aboutsummaryrefslogtreecommitdiff
path: root/settings/erlang-ls.vim
diff options
context:
space:
mode:
authorMitsuo Heijo <mitsuo.heijo@gmail.com>2020-01-04 01:10:39 +0900
committerMitsuo Heijo <mitsuo.heijo@gmail.com>2020-01-04 01:10:39 +0900
commit7c606f7ba61dc291c3e978f2800f812d7b433cc1 (patch)
tree3aebbedb2488badb020f354d3848809423c60d0f /settings/erlang-ls.vim
parent92ad5168f987b2c2d2197ebbb490ebcc31c37053 (diff)
downloadvim-lsp-settings-7c606f7ba61dc291c3e978f2800f812d7b433cc1.tar.gz
vim-lsp-settings-7c606f7ba61dc291c3e978f2800f812d7b433cc1.tar.bz2
vim-lsp-settings-7c606f7ba61dc291c3e978f2800f812d7b433cc1.zip
feature: support erlang
Diffstat (limited to 'settings/erlang-ls.vim')
-rw-r--r--settings/erlang-ls.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/erlang-ls.vim b/settings/erlang-ls.vim
new file mode 100644
index 0000000..698338c
--- /dev/null
+++ b/settings/erlang-ls.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_erlang_ls
+ au!
+ LspRegisterServer {
+ \ 'name': 'erlang-ls',
+ \ 'cmd': {server_info->lsp_settings#get('erlang-ls', 'cmd', [lsp_settings#exec_path('erlang-ls'), '--transport', 'stdio'])},
+ \ 'root_uri':{server_info->lsp_settings#get('erlang-ls', 'root_uri', lsp_settings#root_uri(['.git/', 'rebar.config']))},
+ \ 'initialization_options': lsp_settings#get('erlang-ls', 'initialization_options', {}),
+ \ 'whitelist': lsp_settings#get('erlang-ls', 'whitelist', ['erlang']),
+ \ 'blacklist': lsp_settings#get('erlang-ls', 'blacklist', []),
+ \ 'config': lsp_settings#get('erlang-ls', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('erlang-ls', 'workspace_config', {}),
+ \ }
+augroup END