dockerfile.lua 795 B

123456789101112131415161718192021222324252627282930313233343536
  1. local M = {}
  2. M.config = function()
  3. -- TODO: implement config for language
  4. return "No config available!"
  5. end
  6. M.format = function()
  7. -- TODO: implement formatter for language
  8. return "No formatter available!"
  9. end
  10. M.lint = function()
  11. -- TODO: implement linters (if applicable)
  12. return "No linters configured!"
  13. end
  14. M.lsp = function()
  15. if require("lv-utils").check_lsp_client_active "dockerls" then
  16. return
  17. end
  18. -- npm install -g dockerfile-language-server-nodejs
  19. require("lspconfig").dockerls.setup {
  20. cmd = { DATA_PATH .. "/lspinstall/dockerfile/node_modules/.bin/docker-langserver", "--stdio" },
  21. on_attach = require("lsp").common_on_attach,
  22. root_dir = vim.loop.cwd,
  23. }
  24. end
  25. M.dap = function()
  26. -- TODO: implement dap
  27. return "No DAP configured!"
  28. end
  29. return M