diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-27 17:34:22 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-27 17:34:22 +0900 |
commit | 84168077a7a1783e03f177e3d044fde7858fce7d (patch) | |
tree | 0a2685a9316e665d974c881ebdbb66f991c52d59 | |
parent | e1198d7f03ca64021a5dd76a859df789408f650c (diff) | |
download | vim-lsp-settings-84168077a7a1783e03f177e3d044fde7858fce7d.tar.gz vim-lsp-settings-84168077a7a1783e03f177e3d044fde7858fce7d.tar.bz2 vim-lsp-settings-84168077a7a1783e03f177e3d044fde7858fce7d.zip |
Add digestif
-rw-r--r-- | settings.json | 16 | ||||
-rw-r--r-- | settings/digestif.vim | 13 |
2 files changed, 29 insertions, 0 deletions
diff --git a/settings.json b/settings.json index 0265c0d..ea3a9e3 100644 --- a/settings.json +++ b/settings.json @@ -240,5 +240,21 @@ "npm" ] } + ], + "plaintex": [ + { + "command": "digestif", + "requires": [ + "luarocks" + ] + } + ], + "tex": [ + { + "command": "digestif", + "requires": [ + "luarocks" + ] + } ] } diff --git a/settings/digestif.vim b/settings/digestif.vim new file mode 100644 index 0000000..7e29442 --- /dev/null +++ b/settings/digestif.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_digestif + au! + LspRegisterServer { + \ 'name': 'digestif', + \ 'cmd': {server_info->lsp_settings#get('digestif', 'cmd', [lsp_settings#exec_path('digestif')])}, + \ 'root_uri':{server_info->lsp_settings#get('digestif', 'root_uri', lsp_settings#root_uri(['.git/']))}, + \ 'initialization_options': lsp_settings#get('digestif', 'initialization_options', {"diagnostics": "true"}), + \ 'whitelist': lsp_settings#get('digestif', 'whitelist', ['plaintex', 'tex']), + \ 'blacklist': lsp_settings#get('digestif', 'blacklist', []), + \ 'config': lsp_settings#get('digestif', 'config', {}), + \ 'workspace_config': lsp_settings#get('digestif', 'workspace_config', {}), + \ } +augroup END |