cmake.lua 720 B

1234567891011121314151617181920212223242526272829303132333435
  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 formatters (if applicable)
  8. return "No formatters configured!"
  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 "cmake" then
  16. return
  17. end
  18. require("lspconfig").cmake.setup {
  19. cmd = { DATA_PATH .. "/lspinstall/cmake/venv/bin/cmake-language-server" },
  20. on_attach = require("lsp").common_on_attach,
  21. filetypes = { "cmake" },
  22. }
  23. end
  24. M.dap = function()
  25. -- TODO: implement dap
  26. return "No DAP configured!"
  27. end
  28. return M