Skip to content

Commit 131a107

Browse files
committed
feat: use configured icons in entry maker
1 parent 09e454e commit 131a107

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lua/markit/picker.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,21 @@ end
102102
---@param mark_entry table
103103
---@return table
104104
local function marks_entry_maker(mark_entry)
105+
local icons = require('markit.config').config.preview.icons
105106
local file_icon, file_color = get_filetype_icon(mark_entry.path)
106107
local mark_icon, mark_desc = get_mark_type_info(mark_entry.mark)
107108
local file_path = format_file_path(mark_entry.path, 25)
108109

109110
local line_content = mark_entry.line or ''
110111

111112
local display = string.format(
112-
'%s %s %s %s:%d %s',
113+
'%s %s %s %s:%d %s %s',
113114
mark_icon,
114115
mark_entry.mark,
115116
file_icon,
116117
file_path,
117118
mark_entry.lnum or 0,
119+
icons.target,
118120
line_content
119121
)
120122

@@ -133,19 +135,21 @@ end
133135
---@param bookmark_entry table
134136
---@return table
135137
local function bookmarks_entry_maker(bookmark_entry)
138+
local icons = require('markit.config').config.preview.icons
136139
local file_icon, file_color = get_filetype_icon(bookmark_entry.path)
137140
local bookmark_icon, bookmark_desc = get_bookmark_info(bookmark_entry.group)
138141
local file_path = format_file_path(bookmark_entry.path, 25)
139142

140143
local line_content = bookmark_entry.line or ''
141144

142145
local display = string.format(
143-
'%s %d %s %s:%d %s',
146+
'%s %s %s %s:%d %s\t %s',
144147
bookmark_icon,
145148
bookmark_entry.group or 0,
146149
file_icon,
147150
file_path,
148151
bookmark_entry.lnum or 0,
152+
icons.target,
149153
line_content
150154
)
151155

0 commit comments

Comments
 (0)