diff --git a/dots/.config/nvim/lua/plugins/configs/statuscol.lua b/dots/.config/nvim/lua/plugins/configs/statuscol.lua index c0cc3cf1..308cc0e4 100644 --- a/dots/.config/nvim/lua/plugins/configs/statuscol.lua +++ b/dots/.config/nvim/lua/plugins/configs/statuscol.lua @@ -42,16 +42,6 @@ return { text = { function(args) 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 global_mark_buf = vim.iter(vim.fn.getmarklist()) :filter(function(mark) @@ -65,6 +55,16 @@ return { return global_mark_buf.mark:sub(-1) 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 " " end local mark = get_mark()