Closed phongnh closed 3 years ago
I figured out that default renderer will render node with one starting space.
Tried to update regex with one more \s to FernRootSymbol
, FernLeafSymbol
and FernBranchSymbol
. It seems that that will fix the problem.
I'm sorry I didn't notice this. Well, I don't get the situation so could you create a minimal vimrc and step by step to reproduce the issue first? (note that what you wrote in PR description is not minimal)
Here is my min vimrc
set encoding=utf-8
scriptencoding utf-8
set nocompatible
set termguicolors
set runtimepath^=~/.vim/plugged/fern.vim
let g:fern#renderer#default#root_symbol = "\u2302\u00a0"
let g:fern#renderer#default#leading = ' '
let g:fern#renderer#default#leaf_symbol = ' '
let g:fern#renderer#default#collapsed_symbol = '+ '
let g:fern#renderer#default#expanded_symbol = '~ '
syntax on
filetype plugin indent on
Reproduce issue: https://asciinema.org/a/UdlXe3sT2cqc2UhOhBQtL2u3T
With code from my fork: https://asciinema.org/a/OqYltWUh5eP7DUH0OuGapG0KG
Please check, thanks.
Thanks. Now I got the situation.
I've create a new PR based on your fix. Please test it https://github.com/lambdalisue/fern.vim/pull/274
Open
Fern .
Screenshots
When I set
g:fern#renderer#default#leading
andg:fern#renderer#default#leaf_symbol
to one space, Fern highlights folder correctlyCould you please check it? Thanks.