clojure.lua 687 B

12345678910111213141516171819202122232425262728293031323334353637
  1. local M = {}
  2. M.config = function()
  3. O.lang.erlang = {
  4. lsp = {
  5. path = DATA_PATH .. "/lspinstall/clojure/clojure-lsp",
  6. },
  7. }
  8. end
  9. M.format = function()
  10. -- TODO: implement formatter for language
  11. return "No formatter available!"
  12. end
  13. M.lint = function()
  14. -- TODO: implement linters (if applicable)
  15. return "No linters configured!"
  16. end
  17. M.lsp = function()
  18. if require("lv-utils").check_lsp_client_active "clojure_lsp" then
  19. return
  20. end
  21. require("lspconfig").clojure_lsp.setup {
  22. cmd = { O.lang.erlang.lsp.path },
  23. on_attach = require("lsp").common_on_attach,
  24. }
  25. end
  26. M.dap = function()
  27. -- TODO: implement dap
  28. return "No DAP configured!"
  29. end
  30. return M