From 8bfbb471ce90208dfa2a10c0c541bb15939f05bd Mon Sep 17 00:00:00 2001 From: Brian Ryall Date: Tue, 23 Nov 2021 09:16:38 -0500 Subject: [PATCH] display row and col in finder window --- lua/telescope/_extensions/marks.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/telescope/_extensions/marks.lua b/lua/telescope/_extensions/marks.lua index 1b7c44a..f450037 100644 --- a/lua/telescope/_extensions/marks.lua +++ b/lua/telescope/_extensions/marks.lua @@ -23,6 +23,7 @@ local generate_new_finder = function() return finders.new_table({ results = filter_empty_string(harpoon.get_mark_config().marks), entry_maker = function(entry) + local line = entry.filename .. ":" .. entry.row .. ":" .. entry.col local displayer = entry_display.create({ separator = " - ", items = { @@ -34,7 +35,7 @@ local generate_new_finder = function() local make_display = function(entry) return displayer({ tostring(entry.index), - entry.filename, + line, }) end local line = entry.filename .. ":" .. entry.row .. ":" .. entry.col