Open dkasak opened 7 months ago
I was facing the same issue and was investigating a bit. I think the reason why the bindings were missing was, at least in my case, because my normal bindings were overriding Octo's. Easiest way to solve this would be to just remap the desired bindings to something not already in your mappings (changing <space>
to <localleader>
works for me):
require("octo").setup({
enable_builtin = true,
use_local_fs = true,
mappings = {
review_diff = {
add_review_comment = { lhs = "<localleader>ca", desc = "add a new review comment" },
add_review_suggestion = { lhs = "<localleader>sa", desc = "add a new review suggestion" },
},
},
})
Which made me think: maybe a better option for the default mappings would be using <localleader>
instead of <space>
(which can be <leader>
for some of us) to avoid collision of mappings?
Issue Description
Type: bug report
Describe what happened (or what feature you want)
When
use_local_fs
is used, thereview_diff
bindings don't appear to be working. For example, the default binding<space>sa
foradd_review_suggestion
doesn't open a suggestion entry window. Is this expected?Describe what you expected to happen
I would've expected these features to continue working.
How to reproduce it (as minimally and precisely as possible)
use_local_fs
totrue
.<space>sa
, expecting the suggestion entry window to open.Tell us your environment
NVIM v0.9.4 on Arch Linux.
Anything else we need to know?
N/A