justinmk / vim-dirvish

Directory viewer for Vim :zap:
Other
1.19k stars 64 forks source link

Setting g:dirvish_relative_paths=1 will disable icon and g:dirvish_mode #219

Closed ydzhou closed 2 years ago

ydzhou commented 2 years ago

Setting g:dirvish_relative_paths=1 will disable icon in vim-dirvish and also make g:dirvish_mode not applying.

My vim-dirvish config

nnoremap <silent> <C-n> :Dirvish<CR> 
call dirvish#add_icon_fn({p -> p[-1:]=='/'?'📂':'📄'})
let g:dirvish_relative_paths = 1
let g:dirvish_mode = ':silent keeppatterns g@\v/\.[^\/]+/?$@d _'

mac os 12.3 with VIM 8.2.4600

rcares commented 2 years ago

Same problem with NVIM v0.4.4 on openSUSE 15.3

justinmk commented 2 years ago

also make g:dirvish_mode not applying.

idk what you mean or how that could happen. g:dirvish_relative_paths only changes the format of paths in the dirvish buffer; and g:dirvish_mode is applied in the same way regardless of g:dirvish_relative_paths : https://github.com/justinmk/vim-dirvish/blob/0b9fbd18a13bb2b0ab8302787bb4cd699d6f0463/autoload/dirvish.vim#L394