airblade / vim-rooter

Changes Vim working directory to project root.
MIT License
1.21k stars 72 forks source link

buftype guard in s:activate #132

Closed tpict closed 1 year ago

tpict commented 1 year ago

I'm trying out dirbuf but finding that rooter doesn't update the working directory while browsing with it. This is because this line of the plugin exits early unless buftype is empty or set to nofile, and dirbuf uses acwrite.

Would it be possible to add acwrite to the list of "allowed" buftypes, or to add a configuration option for which types should be ignored?

airblade commented 1 year ago

Thanks for the suggestion.

airblade commented 1 year ago

@tpict I decided I should invert the logic...sorry if you've already used the previous configuration option.

tpict commented 1 year ago

Thanks so much for the quick response! Going on six years of vim-rooter usage :)