dockerfile.lua 341 B

12345678910
  1. if require("lv-utils").check_lsp_client_active "dockerls" then
  2. return
  3. end
  4. -- npm install -g dockerfile-language-server-nodejs
  5. require("lspconfig").dockerls.setup {
  6. cmd = { DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", "--stdio" },
  7. on_attach = require("lsp").common_on_attach,
  8. root_dir = vim.loop.cwd,
  9. }