Only show tail directory in current working directory marker
petobens opened this issue · comments
OS
Arch 5.15.11-arch2-1
Neovim version
NVIM v0.7.0-dev+764-g3e81c1f9b5
Nvim-tree version
master
Describe the bug/feature
I would like to only display the current (tail) folder in the marker at the top of window indicating the current directory. The rationale for this is that I use a narrow window width (40cols) and when moving around directories the innermost folder gets truncated. For instance in the GIF you can see that only ~/git-repos/private/dotfiles/nvim
gets displayed even when the inner directory changes (to plugin-config
or lua
)
:help g:nvim_tree_root_folder_modifier
Missed that one. A follow-up (two part) question/feature request then:
- How I can display both the parent and current dir? I tried playing with
:h:t
without success - Is is it possible to play with the root folder format? I would like to display it with a leading symbol/icon as in:
-> root_folder_info
- not sure how, play with the modifiers a bit
:help filename-modifiers
- i don't think so, it uses fnamemodify under the hood