loctvl842 / breadcrumb.nvim

breadcrumb for neovim
18 stars 1 forks source link

Start the path after the filename #1

Open agaro1121 opened 1 year ago

agaro1121 commented 1 year ago

Is there any way to start the breadcrumbs at the file name? The full breadcrumbs can get pretty lengthy on a small monitor like ie 14" laptop

image

In the screenshot above, I'd like to truncate everything before breadcrumb.lua

loctvl842 commented 1 year ago

yes, you can file the solution in function get_filepath in file renderer.lua. Then just you the cur_filename. Remove anything unnecessary