-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathcle.lua
More file actions
25 lines (22 loc) · 781 Bytes
/
cle.lua
File metadata and controls
25 lines (22 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local M = {}
M.cmake_config = function()
local status_ok, cmake_tools = pcall(require, "cmake-tools")
if not status_ok then
return
end
cmake_tools.setup {
cmake_command = "cmake",
cmake_build_directory = "build",
cmake_generate_options = { "-D", "CMAKE_EXPORT_COMPILE_COMMANDS=1" },
cmake_build_options = {},
cmake_console_size = 10, -- cmake output window height
cmake_show_console = "always", -- "always", "only_on_error"
cmake_dap_configuration = { name = "cpp", type = "codelldb", request = "launch" }, -- dap configuration, optional
cmake_dap_open_command = require("dap").repl.open, -- optional
cmake_variants_message = {
short = { show = true },
long = { show = true, max_length = 40 },
},
}
end
return M