chore: update path_display (#285)
This commit is contained in:
parent
fdb2fa115d
commit
1d78add91e
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ telescope.setup {
|
||||||
file_sorter = require("telescope.sorters").get_fuzzy_file,
|
file_sorter = require("telescope.sorters").get_fuzzy_file,
|
||||||
file_ignore_patterns = {},
|
file_ignore_patterns = {},
|
||||||
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
|
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
|
||||||
path_display = { "absolute" },
|
path_display = function(opts, path)
|
||||||
|
local tail = require("telescope.utils").path_tail(path)
|
||||||
|
return string.format("%s (%s)", tail, path)
|
||||||
|
end,
|
||||||
winblend = 0,
|
winblend = 0,
|
||||||
border = {},
|
border = {},
|
||||||
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||||
|
|
Loading…
Reference in a new issue