improve dap mappings

This commit is contained in:
Antoine Vaure 2025-01-04 17:44:46 +01:00
parent 7962bf3c0c
commit 743bfa810e
5 changed files with 127 additions and 241 deletions

View file

@ -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,