Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize renderer symbol for last leaf in group #247

Open
andymass opened this issue Oct 12, 2020 · 2 comments
Open

Customize renderer symbol for last leaf in group #247

andymass opened this issue Oct 12, 2020 · 2 comments
Labels
enhancement New feature or request maybe oneday Things maybe implemented oneday

Comments

@andymass
Copy link

  let g:fern#renderer#default#leading = "│"
  let g:fern#renderer#default#root_symbol = "┬─ "
  let g:fern#renderer#default#leaf_symbol = "├─ "
  let g:fern#renderer#default#collapsed_symbol = "├─ "
  let g:fern#renderer#default#expanded_symbol = "├┬ "

I would like to be able to customize the last leaf's symbol. See for example, util.vim, fernvim, and README.vim there is a down line, and I would ideally replace it with "└" since it's the last item in this directory. Thank you for the plugin!

@lambdalisue lambdalisue added the enhancement New feature or request label Oct 13, 2020
@lambdalisue
Copy link
Owner

At least for now, there is no way to do that.
I'll think about it but I'm not sure if the feature is worth adding extra complexity to the default renderer.

@lambdalisue lambdalisue added the maybe oneday Things maybe implemented oneday label Oct 21, 2020
@brandon1024
Copy link
Contributor

@andymass you could always create a custom renderer based on the default one that implements this behaviour. Building custom renderers is actually pretty easy to do, and the documentation is great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe oneday Things maybe implemented oneday
Projects
None yet
Development

No branches or pull requests

3 participants