[BUG] set dir = git_dir
will not make toggleterm try and derive the git repo directory
#581
Open
1 task done
dir = git_dir
will not make toggleterm try and derive the git repo directory
#581
Is there an existing issue for this?
Current Behavior
according to the documentation i setting the
dir
option togit_dir
in neovim commandline likeToggleTerm dir=git_dir
, but the directory in toggleterm does not change as expectedExpected Behavior
this seems to be caused by vim.fn.isdirectory not recognizing git_dir. i find the function that toggleterm.nvim used to get or create terminal
and find it depend
vim.fn.isdirectory()
to recognize directory, butgit_dir
will be not recognized.Edited:
I added an additional if condition in my local
toggleterm.nvim
, which madeToggleTerm dir=git_dir
work properly. I'm not sure if this will affect other behaviors.Steps To Reproduce
i set toggleterm.nvim in my configuration like this
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: