diff options
Diffstat (limited to 'lua/nvim-lsp-installer/installers/dockerls.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/installers/dockerls.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/installers/dockerls.lua b/lua/nvim-lsp-installer/installers/dockerls.lua new file mode 100644 index 00000000..4b6d660f --- /dev/null +++ b/lua/nvim-lsp-installer/installers/dockerls.lua @@ -0,0 +1,14 @@ +local installer = require('nvim-lsp-installer.installer') +local capabilities = require('nvim-lsp-installer.capabilities') + +local root_dir = installer.get_server_root_path('dockerfile') + +return installer.create_lsp_config_installer { + name = 'dockerls', + root_dir = root_dir, + install_cmd = [[npm install dockerfile-language-server-nodejs@latest]], + default_options = { + cmd = { root_dir .. '/node_modules/.bin/docker-langserver', '--stdio' }, + capabilities = capabilities.create(), + }, +} |
