Compare commits

..

No commits in common. "27d3bf6b24639260ad907988a57bc9a9d28f3bac" and "65c1541146d2f34977f77b3670ff9502e9103488" have entirely different histories.

View File

@ -42,6 +42,16 @@ return {
text = { text = {
function(args) function(args)
local get_mark = function() local get_mark = function()
local local_mark_buf = vim.iter(vim.fn.getmarklist(args.buf))
:filter(function(mark)
local lnum = mark.pos[2]
return lnum == args.lnum
end)
:next()
if local_mark_buf then
return local_mark_buf.mark:sub(-1)
end
local bufname = vim.api.nvim_buf_get_name(args.buf) local bufname = vim.api.nvim_buf_get_name(args.buf)
local global_mark_buf = vim.iter(vim.fn.getmarklist()) local global_mark_buf = vim.iter(vim.fn.getmarklist())
:filter(function(mark) :filter(function(mark)
@ -55,16 +65,6 @@ return {
return global_mark_buf.mark:sub(-1) return global_mark_buf.mark:sub(-1)
end end
local local_mark_buf = vim.iter(vim.fn.getmarklist(args.buf))
:filter(function(mark)
local lnum = mark.pos[2]
return lnum == args.lnum
end)
:next()
if local_mark_buf then
return local_mark_buf.mark:sub(-1)
end
return " " return " "
end end
local mark = get_mark() local mark = get_mark()
@ -76,9 +76,6 @@ return {
end, end,
}, },
condition = { condition = {
function(args)
return args.virtnum == 0
end,
std_condition, std_condition,
}, },
}, },