File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ let s: Config = vital#fern#import (' Config' )
2+
3+ call s: Config .config (expand (' <sfile>:p' ), {
4+ \ ' show_absolute_path_on_root_label' : 0 ,
5+ \} )
Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ function! s:provider_get_root(uri) abort
3131 if s: is_windows && path == # ' '
3232 return s: windows_drive_root
3333 endif
34- return s: node (path )
34+ let root = s: node (path )
35+ if g: fern #scheme#file #show_absolute_path_on_root_label
36+ let root.label = fnamemodify (root._path, ' :~' )
37+ endif
38+ return root
3539endfunction
3640
3741function ! s: provider_get_parent (node, ... ) abort
Original file line number Diff line number Diff line change @@ -429,6 +429,11 @@ VARIABLE *fern-variable*
429429 Note that users must restart Vim to apply changes.
430430 Default: "*"
431431
432+ *g:fern#scheme#file#show_absolute_path_on_root_label*
433+ A | Boolean | to show an absolute path of the root node of "file" scheme
434+ as a label of the node.
435+ Default: 0
436+
432437-----------------------------------------------------------------------------
433438COMMAND *fern-command*
434439
You can’t perform that action at this time.
0 commit comments