Replies: 1 comment
-
You can get the list of marks for the current buffer with {
function()
local marks = vim.fn.getmarklist(vim.api.nvim_get_curent_buf())
local marks_count = 0
for _, mark in ipairs(marks) do
local mark_symbol = mark.mark:sub(2,2) -- first character is always single-quote
count = count + ('a' <= mark_symbol and mark_symbol <= 'z' and 1 or 0)
end
return marks_count
end,
icon = "" -- `nf-fa-bookmark`
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
basic the title
Beta Was this translation helpful? Give feedback.
All reactions