tagstack: added tag name to entry

main
bhagwan 2 years ago
parent b772c0de9c
commit 98676b67bb

@ -156,8 +156,8 @@ M.tagstack = function(opts)
buficon = utils.ansi_codes[hl](buficon) buficon = utils.ansi_codes[hl](buficon)
end end
end end
-- table.insert(entries, ("%s)%s[%s]%s%s%s%s:%s:%s: %s"):format( -- table.insert(entries, ("%s)%s[%s]%s%s%s%s:%s:%s: %s %s"):format(
table.insert(entries, ("%s)%s%s%s%s:%s:%s: %s"):format( table.insert(entries, ("%s)%s%s%s%s:%s:%s: %s %s"):format(
utils.ansi_codes.yellow(tostring(i)), utils.ansi_codes.yellow(tostring(i)),
utils.nbsp, utils.nbsp,
-- utils.ansi_codes.yellow(tostring(tag.bufnr)), -- utils.ansi_codes.yellow(tostring(tag.bufnr)),
@ -167,6 +167,7 @@ M.tagstack = function(opts)
utils.ansi_codes.magenta(#bufname>0 and bufname or "[No Name]"), utils.ansi_codes.magenta(#bufname>0 and bufname or "[No Name]"),
utils.ansi_codes.green(tostring(tag.lnum)), utils.ansi_codes.green(tostring(tag.lnum)),
tag.col, tag.col,
utils.ansi_codes.red("["..tag.tagname.."]"),
tag.text)) tag.text))
end end

Loading…
Cancel
Save