add devicons to oldfiles picker (#397)
This commit is contained in:
committed by
GitHub
parent
d2ba51c6ca
commit
402c2ea5fa
@@ -229,11 +229,15 @@ internal.loclist = function(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
internal.oldfiles = function(opts)
|
internal.oldfiles = function(opts)
|
||||||
|
local results = vim.tbl_filter(function(val)
|
||||||
|
return 0 ~= vim.fn.filereadable(val)
|
||||||
|
end, vim.v.oldfiles)
|
||||||
pickers.new(opts, {
|
pickers.new(opts, {
|
||||||
prompt_title = 'Oldfiles',
|
prompt_title = 'Oldfiles',
|
||||||
finder = finders.new_table(vim.tbl_filter(function(val)
|
finder = finders.new_table{
|
||||||
return 0 ~= vim.fn.filereadable(val)
|
results = results,
|
||||||
end, vim.v.oldfiles)),
|
entry_maker = opts.entry_maker or make_entry.gen_from_file(opts),
|
||||||
|
},
|
||||||
sorter = conf.file_sorter(opts),
|
sorter = conf.file_sorter(opts),
|
||||||
previewer = conf.file_previewer(opts),
|
previewer = conf.file_previewer(opts),
|
||||||
}):find()
|
}):find()
|
||||||
|
|||||||
Reference in New Issue
Block a user