improve dap mappings
This commit is contained in:
parent
7962bf3c0c
commit
743bfa810e
5 changed files with 127 additions and 241 deletions
|
|
@ -71,12 +71,14 @@ dap.adapters.debugpy = function(cb, config)
|
|||
end
|
||||
end
|
||||
|
||||
require('dap.ext.vscode').load_launchjs("dap_config.json", {
|
||||
cppdbg = { 'c', 'cpp' },
|
||||
lldb = { 'c', 'cpp' },
|
||||
gdb = { 'c', 'cpp' },
|
||||
debugpy = { 'python' }
|
||||
})
|
||||
function launchjs()
|
||||
require('dap.ext.vscode').load_launchjs("dap_config.json", {
|
||||
cppdbg = { 'c', 'cpp' },
|
||||
lldb = { 'c', 'cpp' },
|
||||
gdb = { 'c', 'cpp' },
|
||||
debugpy = { 'python' }
|
||||
})
|
||||
end
|
||||
|
||||
dap.set_log_level("TRACE")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
local hydra = require("hydra.statusline")
|
||||
local opts = {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
|
|
@ -19,10 +18,23 @@ local opts = {
|
|||
}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode', { hydra.get_name, cond = hydra.is_active } },
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch', 'diff' },
|
||||
lualine_c = {
|
||||
'filename',
|
||||
{
|
||||
function()
|
||||
return require("dap").status()
|
||||
end,
|
||||
icon = "",
|
||||
cond = function()
|
||||
if not package.loaded.dap then
|
||||
return false
|
||||
end
|
||||
local session = require("dap").session()
|
||||
return session ~= nil
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- require("noice").api.status.mode.get,
|
||||
-- cond = require("noice").api.status.mode.has,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue