Skip to content
Prabir Shrestha edited this page Sep 18, 2017 · 2 revisions

Installing server

npm install -g dockerfile-language-server-nodejs

Registering in .vimrc

if executable('docker-langserver')
    au User lsp_setup call lsp#register_server({
        \ 'name': 'docker-langserver',
        \ 'cmd': {server_info->[&shell, &shellcmdflag, 'docker-langserver --stdio']},
        \ 'whitelist': ['dockerfile'],
        \ })
endif