configure debug for cmake tools
This commit is contained in:
parent
cfa7b243f3
commit
561b99ac1b
@ -5,6 +5,7 @@ return {
|
||||
cmake_generate_options = { "-D", "CMAKE_EXPORT_COMPILE_COMMANDS=1", '-G', 'Ninja' },
|
||||
cmake_show_console = "always",
|
||||
cmake_build_directory = "build_nvim",
|
||||
cmake_dap_configuration = { name = "cpp", type = "codelldb", request = "launch" }, -- dap configuration, optional
|
||||
},
|
||||
cmd = {
|
||||
'CMakeGenerate',
|
||||
@ -24,4 +25,13 @@ return {
|
||||
'CMakeClean',
|
||||
'CMakeStop',
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<S-F6>',
|
||||
function()
|
||||
require('cmake-tools').debug({})
|
||||
end,
|
||||
desc = 'Run and debug target from cmake'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user