-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Feature Description
I want an autocmd User event for addding specific keybind on the claude code buffer.
Use Case
I want to toggle claudecode buffer with some keymap when the mode is terminal insert mode.
Proposed Solution
ugaterm.nvim has this feature.
With this event, I can add autocmds like this, and can close ugaterm buffer from terminal insert mode with just hitting <Esc><Esc>
.
vim.api.nvim_create_autocmd('User',
{
pattern = 'UgatermEnter',
callback =
function(args)
vim.keymap.set('t', '<Esc>', '<C-\\><C-n>', { buffer = args.buf })
vim.keymap.set('n', '<Esc>', '<cmd>UgatermHide<CR>', { buffer = args.buf })
end
})
Metadata
Metadata
Assignees
Labels
No labels