utilyre / barbecue.nvim

Visual Studio Code inspired breadcrumbs plugin for the Neovim editor
MIT License
807 stars 35 forks source link

feat(components): ability to hide directory path #48

Closed ismailshak closed 1 year ago

ismailshak commented 1 year ago

It would be nice to be able to hide the directory path. I have that context in my status line so would be nice to reduce duplicate information.

show_dirname = true (default)

image

show_dirname = false

image

Looks like you're autogen-ing the vimdocs, so I didn't update that by hand. Awesome plugin!

utilyre commented 1 year ago

Thanks for the PR!

Related: #8

idr4n commented 1 year ago

Hi, Is show_dirname = false supposed to be working already? For me it is not hiding the directory path...

The solution in https://github.com/utilyre/barbecue.nvim/issues/8#issuecomment-1265419804 does work though.

Thanks in advance!

utilyre commented 1 year ago

Hello, double check these two:

  1. show_dirname is at the root of options table you pass to setup function.
  2. you have the latest commit installed.
idr4n commented 1 year ago

My mistake, the latest commit was not installed. I had used your installation instructions for lazy.nvim and got some older commit installed ( due to version = "*"). Thanks for clarifying. It is working now.