You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I configured git_bcommits() such that the command affects the repo containing the currently displayed buffer. I do so using the cwd option:
functionM.git_bcommits()
require("telescope.builtin").git_bcommits{
cwd=vim.fn.expand("%:p:h"),
layout_config= {
prompt_position="top",
},
sorting_strategy="ascending",
}
end
The problem is that if nvim's current working directory is not in the repo containing the current buffer, then this command displays an empty list of commits. If, however, the nvim's current working directory is inside the repo contain the current buffer, then the commits are displayed properly. This gif illustrates this:
Expected Behavior
git_bcommits() should display the list of commits for the current buffer regardless of neovim's current working directory.
Actual Behavior
git_bcommits() displays an empty list when invoked outside of the repo containing the currently displayed buffer.
Description
I configured
git_bcommits()
such that the command affects the repo containing the currently displayed buffer. I do so using thecwd
option:The problem is that if nvim's current working directory is not in the repo containing the current buffer, then this command displays an empty list of commits. If, however, the nvim's current working directory is inside the repo contain the current buffer, then the commits are displayed properly. This gif illustrates this:
Expected Behavior
git_bcommits()
should display the list of commits for the current buffer regardless of neovim's current working directory.Actual Behavior
git_bcommits()
displays an empty list when invoked outside of the repo containing the currently displayed buffer.Details
Environment
The text was updated successfully, but these errors were encountered: