feat: add key mappings to close sidebar in input_container (#1494)

* add key mappings to close sidebar in input_container
* add autocmd to enter normal mode on leaving input_container
* add autocmd to enter insert mode on entering input_container
This commit is contained in:
brook hong
2025-03-08 12:55:13 +08:00
committed by GitHub
parent 8344d3ee3d
commit 4766e76a31
2 changed files with 27 additions and 4 deletions

View File

@@ -383,6 +383,10 @@ M._defaults = {
remove_file = "d",
add_file = "@",
close = { "<Esc>", "q" },
close_from_input = {
normal = "<Esc>",
insert = "<C-d>",
},
},
files = {
add_current = "<leader>ac", -- Add current buffer to selected files