coder / coder/claudecode.nvim

[FEATURE] autocmd event to set up keybinds on the buffer

オープン
#96 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Lua
スター
3.1k
フォーク
216
PR マージ指標
30日以内にマージされた PR はありません

説明

## 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.

https://github.com/uga-rosa/ugaterm.nvim/commit/c12135abec935e2b78e99d710bbe9c7a690ab36e

With this event, I can add autocmds like this, and can close ugaterm buffer from terminal insert mode with just hitting ``.

```lua
vim.api.nvim_create_autocmd('User',
{
pattern = 'UgatermEnter',
callback =
function(args)
vim.keymap.set('t', '', '', { buffer = args.buf })
vim.keymap.set('n', '', 'UgatermHide', { buffer = args.buf })
end
})
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reviewing the plugin's existing Claude Code buffer setup and the proposed ugaterm.nvim commit linked in the issue. Identify where the buffer is created or entered, add the requested User autocmd behavior there, and verify that buffer-local terminal and normal-mode keymaps can be registered through the shown callback pattern.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
lua, neovim
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。