1
2
3
4
5
6
7
8
9
10
11
12
|
augroup vimlsp_settings_dockerfile_language_server_nodejs
au!
autocmd User lsp_setup ++once call lsp#register_server({
\ 'name': 'docker-langserver',
\ 'cmd': {server_info->lsp_settings#get('docker-langserver', 'cmd', [lsp_settings#exec_path('docker-langserver'), '--stdio'])},
\ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))},
\ 'whitelist': lsp_settings#get('docker-langserver', 'whitelist', ['dockerfile']),
\ 'blacklist': lsp_settings#get('docker-langserver', 'blacklist', []),
\ 'config': lsp_settings#get('docker-langserver', 'config', {}),
\ 'workspace_config': lsp_settings#get('docker-langserver', 'workspace_config', {}),
\ })
augroup END
|