aboutsummaryrefslogtreecommitdiff
path: root/settings/nimlsp.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-28 21:42:29 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-28 21:42:29 +0900
commit78ea37665065698f731ea7db90bad01d244cd264 (patch)
tree6a80faee83f5a88095e687fddce5ff59dd945da0 /settings/nimlsp.vim
parent552052d5fc29951fa5391e0409cfc9f2edb3a6ee (diff)
downloadvim-lsp-settings-78ea37665065698f731ea7db90bad01d244cd264.tar.gz
vim-lsp-settings-78ea37665065698f731ea7db90bad01d244cd264.tar.bz2
vim-lsp-settings-78ea37665065698f731ea7db90bad01d244cd264.zip
Add nimlsp
Diffstat (limited to 'settings/nimlsp.vim')
-rw-r--r--settings/nimlsp.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/nimlsp.vim b/settings/nimlsp.vim
new file mode 100644
index 0000000..95c71e1
--- /dev/null
+++ b/settings/nimlsp.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_nimlsp
+ au!
+ LspRegisterServer {
+ \ 'name': 'nimlsp',
+ \ 'cmd': {server_info->lsp_settings#get('nimlsp', 'cmd', [lsp_settings#exec_path('nimlsp')])},
+ \ 'root_uri':{server_info->lsp_settings#get('nimlsp', 'root_uri', lsp_settings#root_uri(['.git/']))},
+ \ 'initialization_options': lsp_settings#get('nimlsp', 'initialization_options', {"diagnostics": "true"}),
+ \ 'whitelist': lsp_settings#get('nimlsp', 'whitelist', ['nim']),
+ \ 'blacklist': lsp_settings#get('nimlsp', 'blacklist', []),
+ \ 'config': lsp_settings#get('nimlsp', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('nimlsp', 'workspace_config', {}),
+ \ }
+augroup END