calling write fails with E17 path is a directory
matu3ba opened this issue · 4 comments
matu3ba commented
config:
use { 'elihunter173/dirbuf.nvim', config = function() require("dirbuf").setup { write_cmd = "DirbufSync -confirm" } end, }
However, manually running the command :DirbufSync -confirm
works as expected.
The behavior occurs both from opening a directory and opening a file first and then calling :Dirfuf %
Is this behavior expected? If yes, then it should be documented.
Side question: Is there a difference in using :e pathtodir
and :Dirbuf pathtodir
?
matu3ba commented
known workaround: Use the first time :w!
to force the write.
Subsequent writes will work as expected.
elihunter173 commented
Is this behavior expected? If yes, then it should be documented.
This behavior is not expected. Are you using Neovim nightly? If yes, then I'll close this issue as a duplicate of #45 since I just re-opened that for investigation.