From f38ec65e881488ae5f513fae883fab8ecadf671d Mon Sep 17 00:00:00 2001 From: ucpr Date: Sun, 31 Aug 2025 23:14:13 +0900 Subject: [PATCH] chore: simplify treesj keybindings and add keybind documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- nvim/keybind.md | 115 ++++++++++++++++++++++++++++++++++++ nvim/lua/plugins/treesj.lua | 2 +- 2 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 nvim/keybind.md diff --git a/nvim/keybind.md b/nvim/keybind.md new file mode 100644 index 0000000..49a341d --- /dev/null +++ b/nvim/keybind.md @@ -0,0 +1,115 @@ +# Neovim Keybindings + +## Leader Key +- Leader key is set to `` (スペースキー) + +## (Space) Keybindings + +### AI/Claude Code (`a`) +- `a` - AI/Claude Code prefix +- `ac` - Toggle Claude +- `af` - Focus Claude +- `ar` - Resume Claude +- `aC` - Continue Claude +- `ab` - Add current buffer +- `as` - Send to Claude (visual mode) / Add file (in file tree) +- `aa` - Accept diff +- `ad` - Deny diff + +### Code Actions (`ca`) +- `ca` - Code actions (normal and visual mode) + +### LSP Workspace +- `wa` - Add workspace folder +- `wr` - Remove workspace folder +- `wl` - List workspace folders +- `D` - Type definition +- `e` - Show line diagnostics +- `q` - Set loclist + +### Telescope +- `ff` - Fuzzy find files in cwd +- `g` - Live grep +- `b` - Buffers +- `gs` - Git status +- `gc` - Git commits + +### TreeSJ (Split/Join) +- `m` - Toggle split/join + +## Other Important Keybindings + +### General +- `` - Quit without saving + +### Buffer Navigation +- `,` - Previous buffer +- `.` - Next buffer + +### Tab Navigation +- `tl` - Next tab +- `th` - Previous tab +- `` - New tab + +### Window Navigation +- `` - Move to left window +- `` - Move to bottom window +- `` - Move to top window +- `` - Move to right window + +### Terminal Mode +- `` - Exit terminal mode to normal mode +- `` - Exit terminal +- `` - Exit terminal mode to normal mode +- `T` - Toggle FTerm + +### LSP Navigation +- `gD` - Go to declaration +- `gd` - Go to definition +- `gvd` - Go to definition in vertical split +- `gsd` - Go to definition in horizontal split +- `gi` - Go to implementation +- `gr` - Go to references +- `gt` - Go to type definition +- `gn` - Rename +- `gf` - Format +- `ge` - Open float diagnostic +- `` - Signature help +- `[d` - Previous diagnostic +- `]d` - Next diagnostic + +### File Explorer (Oil) +- `-` - Open parent directory (Oil) +- `g?` - Show help (in Oil) +- `` - Select +- `` - Select in vertical split +- `` - Select in horizontal split +- `` - Select in new tab +- `` - Preview +- `` - Close +- `` - Refresh +- `_` - Open cwd +- `` ` `` - cd to directory +- `~` - tcd to directory +- `gs` - Change sort +- `gx` - Open external +- `g.` - Toggle hidden files +- `g\` - Toggle trash + +### Search (Pounce) +- `s` - Pounce search + +### Treesitter +- `` - Init/increment selection +- `` - Decrement selection + +### Copilot +- `` - Accept Copilot suggestion (insert mode) +- `` - Dismiss Copilot suggestion (insert mode) + +### Custom Scripts +- `got` - Run Go test + +### User Commands +- `:Sterm` - Split terminal (horizontal) +- `:Vterm` - Vertical split terminal diff --git a/nvim/lua/plugins/treesj.lua b/nvim/lua/plugins/treesj.lua index d2c5090..125d777 100644 --- a/nvim/lua/plugins/treesj.lua +++ b/nvim/lua/plugins/treesj.lua @@ -1,6 +1,6 @@ return { 'Wansmer/treesj', - keys = { 'm', 'j', 's' }, + keys = { 'm' }, -- cmd = { 'TSJToggle', 'TSJSplit', 'TSJJoin' }, config = function() require('treesj').setup({ -- knotmirror 0.0.1