From 52ff6542ccd819ac9c8b5a5d9c87ff169af8f6b8 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 6 Jul 2024 06:11:28 +0545 Subject: [PATCH] update --- docs/keybindings.md | 36 ++++++++++++++++++++++++++------- lua/plugins/tools/which-key.lua | 16 +++++++++------ 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/docs/keybindings.md b/docs/keybindings.md index 70b52eb..a825549 100644 --- a/docs/keybindings.md +++ b/docs/keybindings.md @@ -14,6 +14,23 @@ Sources: > Leader key is set to ``. +### a - AI + +| Keybinding | Action | +| ---------------------------------- | -------------- | +| Leader a c | Copilot Chat | +| Leader a d | Docs | +| Leader a e | Explain | +| Leader a f | Fix | +| Leader a F | Fix Diagnostic | +| Leader a g | Commit | +| Leader a G | Commit Staged | +| Leader a l | Load Chat | +| Leader a o | Optimize | +| Leader a r | Review | +| Leader a s | Save Chat | +| Leader a t | Tests | + ### b - Debugging | Keybinding | Action | @@ -278,6 +295,7 @@ Sources: | Leader q d | Delete Buffer | | Leader q f | Force Quit | | Leader q q | Quit | +| Leader q s | Close Split | | Leader q w | Write and Quit | ### r - Refactor @@ -307,11 +325,14 @@ Sources: | Keybinding | Action | | ---------------------------------- | ---------------- | | Leader s ` | Previous Window | -| Leader s - | Split Below | | Leader s \ | Split Right | -| Leader s a | Vertical Split | +| Leader s / | Split Below | +| Leader s - | Decrease Width | +| Leader s = | Increase Width | +| Leader s _ | Decrease Height | +| Leader s + | Increase Height | +| Leader s a | Horizontal Split | | Leader s c | Close Tab | -| Leader s d | Close Window | | Leader s f | First Tab | | Leader s h | Move Left | | Leader s H | Decrease Width | @@ -322,7 +343,8 @@ Sources: | Leader s l | Move Right | | Leader s L | Increase Width | | Leader s p | Previous Pane | -| Leader s s | Horizontal Split | +| Leader s q | Close Split | +| Leader s s | Vertical Split | ### t - Terminal @@ -341,10 +363,10 @@ Sources: | Keybinding | Action | | ---------------------------------- | ---------------- | -| Leader u F | Run Current Test | -| Leader u f | Run Test | +| Leader u c | Run Current Test | +| Leader u f | Run Test File | | Leader u o | Test Output | -| Leader u O | Test Summary | +| Leader u s | Test Summary | ### v - Select diff --git a/lua/plugins/tools/which-key.lua b/lua/plugins/tools/which-key.lua index 0a78411..9a0616e 100644 --- a/lua/plugins/tools/which-key.lua +++ b/lua/plugins/tools/which-key.lua @@ -394,22 +394,26 @@ local mappings = { s = { name = icons.ui.Windows .. 'Split', ['`'] = { 'p', 'Previous Window' }, - ['-'] = { 's', 'Split Below' }, ['\\'] = { 'v', 'Split Right' }, - a = { 'vsplit', 'Vertical Split' }, + ['/'] = { 's', 'Split Below' }, + ['-'] = { 'vertical resize -20', 'Decrease window width' }, + ['='] = { 'vertical resize +20', 'Increase window width' }, + ['_'] = { 'resize -10', 'Decrease window height' }, + ['+'] = { 'resize +10', 'Increase window height' }, + a = { 'split', 'Horizontal Split' }, c = { 'tabclose', 'Close Tab' }, - d = { 'c', 'Close Window' }, f = { 'tabfirst', 'First Tab' }, h = { 'h', 'Move Left' }, H = { 'vertical resize -10', 'Decrease window width' }, j = { 'j', 'Move Down' }, - J = { 'resize -10', 'Decrease window height' }, + J = { 'resize -5', 'Decrease window height' }, k = { 'k', 'Move Up' }, - K = { 'resize +10', 'Increase window height' }, + K = { 'resize +5', 'Increase window height' }, l = { 'l', 'Move Right' }, L = { 'vertical resize +10', 'Increase window width' }, p = { 'NavigatorPrevious', 'Previous Pane' }, - s = { 'split', 'Horizontal Split' }, + q = { 'c', 'Close Split' }, + s = { 'vsplit', 'Vertical Split' }, }, t = { name = icons.ui.Terminal .. 'Terminal',