aboutsummaryrefslogtreecommitdiff
path: root/settings
diff options
context:
space:
mode:
authorsgur <sgurrr@gmail.com>2020-01-24 16:13:42 +0900
committersgur <sgurrr@gmail.com>2020-01-24 16:29:13 +0900
commit02166bb14a6c30e910f97bd8ab8cf570ca98bc7c (patch)
treefb9964e8be4b28f3bfad8624b40645585278e877 /settings
parent3b5c80cf983a82f78ee98a2d6d7dacc7703de1c2 (diff)
downloadvim-lsp-settings-02166bb14a6c30e910f97bd8ab8cf570ca98bc7c.tar.gz
vim-lsp-settings-02166bb14a6c30e910f97bd8ab8cf570ca98bc7c.tar.bz2
vim-lsp-settings-02166bb14a6c30e910f97bd8ab8cf570ca98bc7c.zip
Use g:lsp_settings.initialization_options value for vim-language-server
Diffstat (limited to 'settings')
-rw-r--r--settings/vim-language-server.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/vim-language-server.vim b/settings/vim-language-server.vim
index ab91f10..e31efed 100644
--- a/settings/vim-language-server.vim
+++ b/settings/vim-language-server.vim
@@ -4,8 +4,8 @@ augroup vimlsp_settings_vim_language_server
\ 'name': 'vim-language-server',
\ 'cmd': {server_info->lsp_settings#get('vim-language-server', 'cmd', [lsp_settings#exec_path('vim-language-server'), '--stdio'])},
\ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp_settings#root_uri(extend(['.vim/', 'vimfiles/'], g:lsp_settings_root_markers)))},
- \ 'initialization_options': { 'vimruntime': $VIMRUNTIME, 'runtimepath': &rtp },
- \ 'whitelist': lsp_settings#get('vim-language-server', 'whitelist', ['vim']),
+ \ 'initialization_options': extend({'vimruntime': $VIMRUNTIME, 'runtimepath': &rtp}, lsp_settings#get('vim-language-server', 'initialization_options', {}), 'force'),
+ \ 'whitelist': lsp_settings#get('vim-language-server', 'whitelist', ['vim']),
\ 'blacklist': lsp_settings#get('vimbash-language-server', 'blacklist', []),
\ 'config': lsp_settings#get('vim-language-server', 'config', {}),
\ 'workspace_config': lsp_settings#get('vim-language-server', 'workspace_config', {}),