diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-28 22:11:57 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-28 22:11:57 +0900 |
commit | 560e3d479ddf228b8ce0a41bbdd71ccafeccc1a8 (patch) | |
tree | 2110229f75ab454b8ee4b45136f1fdabf9c5ac64 | |
parent | 78ea37665065698f731ea7db90bad01d244cd264 (diff) | |
download | vim-lsp-settings-560e3d479ddf228b8ce0a41bbdd71ccafeccc1a8.tar.gz vim-lsp-settings-560e3d479ddf228b8ce0a41bbdd71ccafeccc1a8.tar.bz2 vim-lsp-settings-560e3d479ddf228b8ce0a41bbdd71ccafeccc1a8.zip |
Add dls
-rw-r--r-- | settings.json | 8 | ||||
-rw-r--r-- | settings/dls.vim | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/settings.json b/settings.json index 2171a3a..6ccdd8b 100644 --- a/settings.json +++ b/settings.json @@ -41,6 +41,14 @@ ] } ], + "d": [ + { + "command": "dls", + "requires": [ + "npm" + ] + } + ], "dockerfile": [ { "command": "docker-langserver", diff --git a/settings/dls.vim b/settings/dls.vim new file mode 100644 index 0000000..fc7a9dd --- /dev/null +++ b/settings/dls.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_dls + au! + LspRegisterServer { + \ 'name': 'dls', + \ 'cmd': {server_info->lsp_settings#get('dls', 'cmd', [lsp_settings#exec_path('dls')])}, + \ 'root_uri':{server_info->lsp_settings#get('dls', 'root_uri', lsp_settings#root_uri(['.git/']))}, + \ 'initialization_options': lsp_settings#get('dls', 'initialization_options', {"diagnostics": "true"}), + \ 'whitelist': lsp_settings#get('dls', 'whitelist', ['d']), + \ 'blacklist': lsp_settings#get('dls', 'blacklist', []), + \ 'config': lsp_settings#get('dls', 'config', {}), + \ 'workspace_config': lsp_settings#get('dls', 'workspace_config', {}), + \ } +augroup END |