mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:50:04 +08:00
perf(project): display path relative to the home directory
This commit is contained in:
parent
4067eef913
commit
8a49f600b3
@ -5,6 +5,7 @@ local entry_display = require('telescope.pickers.entry_display')
|
||||
local finders = require('telescope.finders')
|
||||
local pickers = require('telescope.pickers')
|
||||
local pm = require('spacevim.plugin.projectmanager')
|
||||
local file = require('spacevim.api.file')
|
||||
|
||||
local function get_all_projects()
|
||||
local p = {}
|
||||
@ -30,7 +31,7 @@ local function show_changes(opts)
|
||||
-- print(vim.inspect(entry))
|
||||
return displayer({
|
||||
{ '[' .. entry.value.name .. ']', 'TelescopeResultsVariable' },
|
||||
{ entry.value.path, 'TelescopeResultsFunction' },
|
||||
{ file.unify_path(entry.value.path, ':~'), 'TelescopeResultsFunction' },
|
||||
{
|
||||
'<' .. vim.fn.strftime('%Y-%m-%d %T', entry.value.opened_time) .. '>',
|
||||
'TelescopeResultsComment',
|
||||
|
Loading…
Reference in New Issue
Block a user