elihunter173 / dirbuf.nvim

A file manager for Neovim which lets you edit your filesystem like you edit text
GNU Affero General Public License v3.0
423 stars 7 forks source link

[Question] How might we have DirBuf open to the PWD of the current buffer? #30

Closed megalithic closed 2 years ago

megalithic commented 2 years ago

I love dirbuf!

I was wondering if there was some way to have dirbuf "start" in the PWD of the current buffer/file?

Thanks so much! This has scratched my itch for an easy to use, super useful "tree" plugin.

megalithic commented 2 years ago

Found it. thanks!

Just need to pass in the current buffer to require('dirbuf').open()

elihunter173 commented 2 years ago

You can also call :Dirbuf % or use the <Plug>(dirbuf_up) mapping which also respects counts