reach.nvim
reach.nvim copied to clipboard
Show short path instead of filename only?
How can we display buffer with its short path like: ~/.con/nv/pa/d/s/vi/README.md (as full path of ~/.config/nvim/pack/default/start/vim-bufferline) instead of display only file name README.md?
this is because we can have multiple buffers with same filename, and showing path as above will help distinguish buffers better.
~~Btw powerline has some magic algorithm for path shortening~~ nvm, neovim succesfully does it ootb.
Also tab switcher really lacks details. I kinda can look at the tabline, but then the only point of Reach is to hint 10th+ tabs with letters. If reach could display tab titles i would disable the tabline and save some space which would be nice.
I've forked it and made tabs display the shortened filepath of current tab's buffer using plenary.path module. It's hardcoded, so not sure if i should contribute it, it even requires plenary (which everyone probably have already) now. I'm really bad at lua so i can't even understand what's going on in buffer selector module, so i can't implement it there