mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2026-06-11 15:48:11 +02:00
2b2fc48fcb
The augroup/au! wrapper was needed when registration was done with ':autocmd User lsp_setup', to avoid stacking duplicate autocmds on re-source. Now that registration is a plain function call, augroup has no effect on it. Drop the wrapper where it only enclosed the registration, and keep augroups only around real autocmds, moving the registration call out in front of them (the original order, call then autocmd, is preserved).
12 lines
776 B
VimL
12 lines
776 B
VimL
call lsp_settings#register_server({
|
|
\ 'name': 'dls',
|
|
\ 'cmd': {server_info->lsp_settings#get('dls', 'cmd', [lsp_settings#exec_path('dls')]+lsp_settings#get('dls', 'args', ['--stdio']))},
|
|
\ 'root_uri':{server_info->lsp_settings#get('dls', 'root_uri', lsp_settings#root_uri('dls'))},
|
|
\ 'initialization_options': lsp_settings#get('dls', 'initialization_options', {'diagnostics': 'true'}),
|
|
\ 'allowlist': lsp_settings#get('dls', 'allowlist', ['d']),
|
|
\ 'blocklist': lsp_settings#get('dls', 'blocklist', []),
|
|
\ 'config': lsp_settings#get('dls', 'config', lsp_settings#server_config('dls')),
|
|
\ 'workspace_config': lsp_settings#get('dls', 'workspace_config', {}),
|
|
\ 'semantic_highlight': lsp_settings#get('dls', 'semantic_highlight', {}),
|
|
\ })
|