mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
display row and col in finder window
This commit is contained in:
parent
61fe69727b
commit
8bfbb471ce
@ -23,6 +23,7 @@ local generate_new_finder = function()
|
|||||||
return finders.new_table({
|
return finders.new_table({
|
||||||
results = filter_empty_string(harpoon.get_mark_config().marks),
|
results = filter_empty_string(harpoon.get_mark_config().marks),
|
||||||
entry_maker = function(entry)
|
entry_maker = function(entry)
|
||||||
|
local line = entry.filename .. ":" .. entry.row .. ":" .. entry.col
|
||||||
local displayer = entry_display.create({
|
local displayer = entry_display.create({
|
||||||
separator = " - ",
|
separator = " - ",
|
||||||
items = {
|
items = {
|
||||||
@ -34,7 +35,7 @@ local generate_new_finder = function()
|
|||||||
local make_display = function(entry)
|
local make_display = function(entry)
|
||||||
return displayer({
|
return displayer({
|
||||||
tostring(entry.index),
|
tostring(entry.index),
|
||||||
entry.filename,
|
line,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
local line = entry.filename .. ":" .. entry.row .. ":" .. entry.col
|
local line = entry.filename .. ":" .. entry.row .. ":" .. entry.col
|
||||||
|
Loading…
x
Reference in New Issue
Block a user