123456789101112131415161718192021222324252627282930313233343536373839404142 |
- local M = {}
- M.config = function()
- O.lang.cmake = {
- formatter = {
- exe = "clang-format",
- args = {},
- },
- lsp = {
- path = DATA_PATH .. "/lspinstall/cmake/venv/bin/cmake-language-server",
- },
- }
- end
- M.format = function()
- -- TODO: implement formatters (if applicable)
- return "No formatters configured!"
- end
- M.lint = function()
- -- TODO: implement linters (if applicable)
- return "No linters configured!"
- end
- M.lsp = function()
- if require("lv-utils").check_lsp_client_active "cmake" then
- return
- end
- require("lspconfig").cmake.setup {
- cmd = { O.lang.cmake.lsp.path },
- on_attach = require("lsp").common_on_attach,
- filetypes = { "cmake" },
- }
- end
- M.dap = function()
- -- TODO: implement dap
- return "No DAP configured!"
- end
- return M
|