From e8f9215057bc1e9c17d9c13fa8424426965bd911 Mon Sep 17 00:00:00 2001 From: Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:51:40 +0530 Subject: [PATCH 1/6] docs(nvim): add documentation for neovim going to add more keymaps in future --- README.md | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9899f2b --- /dev/null +++ b/README.md @@ -0,0 +1,104 @@ +# LilSuperUser's Dotfiles +## Nvim Dotfiles +### Keymaps +> _even though keymaps are available and very easy to understand after installing the configuration, here's the keymaps for the lazy (pun intended) crowd_ +how a keymap works? +mf for example means pressing the leader key i.e. space (default) then press m and then f + +#### Formatting +| Function | Keymap | +| -------------- | --------------- | +| Format whole file or range | mf | + +#### Snacks +| Function | Keymap | +| -------------- | --------------- | +| TODO/Fix/FIXME | pT | +| Look through ToDo comments | pt | +| Disable Indentated Lines | ic | +| Enable Indentated Lines | io | +| Help Pages | vh | +| Pick & Switch Git Branches | gbr | +| Pick Color Schemes | th | +| Search Man Pages | pm | +| Search Registers | p' | +| Search Keymaps | pk | +| Grep a visual selection | pvs | +| Grep Something | pw | +| Find nvim config files | pc | +| Find Files | pc | +| Close Buffer | dB | +| Fast Rename Current File | R | +| Git diff (hunks) | gd | +| Lazygit Logs | gl | +| Lazygit | lg | + +#### Linting +| Function | Keymap | +| -------------- | --------------- | +| Trigger linting for current file | l | + +#### Which-Key +| Function | Keymap | +| -------------- | --------------- | +| Buffer Local Keymaps | ? | + +#### Color-Picker +| Function | Keymap | +| -------------- | --------------- | +| Toggle color highlighter | cc | + +#### Mini +| Function | Keymap | +| -------------- | --------------- | +| Trim, Clear, Highlight | tc | +| Trailing whitespace trimmed | ts | +| Toggle Hidden Files | H | +| Open Mini-File Explorer | E | + +#### Misc +| Function | Keymap | +| -------------- | --------------- | +| Wrap with abbreviation | xe | + +#### Editor +| Function | Keymap | +| -------------- | --------------- | +| Toggle Undo Tree | u | + +#### Git CMDs +| Function | Keymap | +| -------------- | --------------- | +| LazyGit | gwc | +| Create Git Worktree Branches | gwt | +| Toggle Git Blame | gbl | +| Git diff (hunks) (Snacks) | gd | +| Lazygit Logs (Snacks) | gl | +| Lazygit (Snacks) | lg | +| Pick & Switch Git Branches | gbr | + +#### Multi-Cursor +| Function | Keymap | +| -------------- | --------------- | +| Line Skip Cursor (+1) | j | +| Line Skip Cursor (-1) | k | + +#### Telescope +| Function | Keymap | +| -------------- | --------------- | +| Telescope Themes | ths | +| Find Connected Words under Cursor | pWs | +| Fuzzy Find Notifications | pn | +| Fuzzy Find recent files | pr | + +#### Harpoon +| Function | Keymap | +| -------------- | --------------- | +| Harpoon Remove File | d4 | +| Harpoon to File 1 | 4 | +| Harpoon quick menu | hl | +| Add file to Harpoon | ha | + + +there are also variations to some commands +fr eg: Harpoon to file 1,2,3,4 and corresponding remove file cmds From a6a0e6683ccb1ccd5abc8f43ad6d341da23f9509 Mon Sep 17 00:00:00 2001 From: Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> Date: Mon, 13 Apr 2026 19:58:54 +0530 Subject: [PATCH 2/6] docs: add more keymaps --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9899f2b..96dc4fb 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,18 @@ how a keymap works? | Function | Keymap | | -------------- | --------------- | | Wrap with abbreviation | xe | +| Close the current split window | sx | +| Make splits equal size | se | +| Split window horizontally | sh | +| Split window vertically | sv | +| Move to previous tab | tp | +| Move to next tab | tn | +| Close a tab | tx | +| Open current tab in a new tab | t0 | +| Open a new tab | to | +| Dismiss all notification windows currently displayed | cn | +| Toggle LSP diagnostics visibility | lx | +| Copy the path of the file in the clipboard | fp | #### Editor | Function | Keymap | @@ -99,6 +111,5 @@ how a keymap works? | Harpoon quick menu | hl | | Add file to Harpoon | ha | - there are also variations to some commands -fr eg: Harpoon to file 1,2,3,4 and corresponding remove file cmds +for eg: Harpoon to file 1,2,3,4 and corresponding remove file cmds From 7b119b7091832d38fdd46a25fca16eccf2ce3fc4 Mon Sep 17 00:00:00 2001 From: Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> Date: Tue, 14 Apr 2026 19:53:55 +0530 Subject: [PATCH 3/6] docs: nvim keymaps sorted by plugins --- README.md | 247 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 174 insertions(+), 73 deletions(-) diff --git a/README.md b/README.md index 96dc4fb..6f4a9ae 100644 --- a/README.md +++ b/README.md @@ -2,114 +2,215 @@ ## Nvim Dotfiles ### Keymaps > _even though keymaps are available and very easy to understand after installing the configuration, here's the keymaps for the lazy (pun intended) crowd_ + how a keymap works? -mf for example means pressing the leader key i.e. space (default) then press m and then f +`mf` for example means pressing the leader key i.e. space (default) then press m and then f + +--- + +### General +| Function | Keymap | +| -------------- | --------------- | +| Move lines down in visual selection | `J` | +| Move lines up in visual selection | `K` | +| Join current line with one below | `J` | +| Scroll up (cursor centered) | `` | +| Scroll down (cursor centered) | `` | +| Next search match (centered) | `n` | +| Previous search match (centered) | `N` | +| Clear search highlight | `C` | +| Indent selection left (keep selection) | `<` | +| Indent selection right (keep selection) | `>` | +| Format current buffer with LSP | `f` | +| Replace current word globally | `r` | +| Make current file executable | `X` | +| Execute current file | `XX` | +| Build project in build directory | `mk` | +| Build and run tests | `rt` | +| Copy file path to clipboard | `fp` | +| Toggle LSP diagnostics | `lx` | +| Buffer Local Keymaps (which-key) | `?` | + +--- + +### Clipboard +| Function | Keymap | +| -------------- | --------------- | +| Paste without replacing clipboard | `P` (visual) | +| Paste without copying selection | `p` (visual) | +| Delete without yanking | `x` | +| Delete to black hole (char) | `Ds` | +| Delete to black hole (line) | `Dl` | + +--- + +### Tabs +| Function | Keymap | +| -------------- | --------------- | +| Open a new tab | `to` | +| Open current file in new tab | `tO` | +| Close current tab | `tx` | +| Move to next tab | `tn` | +| Move to previous tab | `tp` | + +--- + +### Splits +| Function | Keymap | +| -------------- | --------------- | +| Split window vertically | `sv` | +| Split window horizontally | `sh` | +| Make splits equal size | `se` | +| Close current split | `sx` | +| Move to left split | `` | +| Move to below split | `` | +| Move to up split | `` | +| Move to right split | `` | + +--- -#### Formatting +### Snacks | Function | Keymap | | -------------- | --------------- | -| Format whole file or range | mf | +| TODO/Fix/FIXME | `pT` | +| Look through ToDo comments | `pt` | +| Disable Indentated Lines | `ic` | +| Enable Indentated Lines | `io` | +| Help Pages | `vh` | +| Pick & Switch Git Branches | `gbr` | +| Pick Color Schemes | `th` | +| Search Man Pages | `pm` | +| Search Registers | `p'` | +| Search Keymaps | `pk` | +| Grep a visual selection | `pvs` | +| Grep Something | `pw` | +| Find nvim config files | `pc` | +| Find Files | `pf` | +| Close Buffer | `dB` | +| Fast Rename Current File | `R` | +| Git diff (hunks) | `gd` | +| Lazygit Logs | `gl` | +| Lazygit | `lg` | -#### Snacks +--- + +### Linting | Function | Keymap | | -------------- | --------------- | -| TODO/Fix/FIXME | pT | -| Look through ToDo comments | pt | -| Disable Indentated Lines | ic | -| Enable Indentated Lines | io | -| Help Pages | vh | -| Pick & Switch Git Branches | gbr | -| Pick Color Schemes | th | -| Search Man Pages | pm | -| Search Registers | p' | -| Search Keymaps | pk | -| Grep a visual selection | pvs | -| Grep Something | pw | -| Find nvim config files | pc | -| Find Files | pc | -| Close Buffer | dB | -| Fast Rename Current File | R | -| Git diff (hunks) | gd | -| Lazygit Logs | gl | -| Lazygit | lg | +| Trigger linting for current file | `l` | + +--- -#### Linting +### Mini (Files/Comment/Trailspace) | Function | Keymap | | -------------- | --------------- | -| Trigger linting for current file | l | +| Open MiniFiles explorer | `e` | +| Open MiniFiles at current file | `E` | +| Toggle hidden files | `H` | +| Trim trailing whitespace | `ts` | +| Clear trailing whitespace highlight | `tc` | -#### Which-Key +--- + +### Telescope | Function | Keymap | | -------------- | --------------- | -| Buffer Local Keymaps | ? | +| Fuzzy find recent files | `pr` | +| Fuzzy find notifications | `pn` | +| Find word under cursor | `pWs` | +| Switch themes | `ths` | + +--- -#### Color-Picker +### Harpoon | Function | Keymap | | -------------- | --------------- | -| Toggle color highlighter | cc | +| Add file to harpoon | `ha` | +| Toggle harpoon quick menu | `hl` | +| Jump to file 1 | `1` | +| Jump to file 2 | `2` | +| Jump to file 3 | `3` | +| Jump to file 4 | `4` | +| Remove file 1 | `d1` | +| Remove file 2 | `d2` | +| Remove file 3 | `d3` | +| Remove file 4 | `d4` | -#### Mini +--- + +### Git (Fugitive) | Function | Keymap | | -------------- | --------------- | -| Trim, Clear, Highlight | tc | -| Trailing whitespace trimmed | ts | -| Toggle Hidden Files | H | -| Open Mini-File Explorer | E | +| Open Git status | `gg` | +| Git push (fugitive buffer) | `P` | +| Git pull with rebase (fugitive buffer) | `p` | +| Set upstream (fugitive buffer) | `t` | + +--- -#### Misc +### Git (Gitsigns) | Function | Keymap | | -------------- | --------------- | -| Wrap with abbreviation | xe | -| Close the current split window | sx | -| Make splits equal size | se | -| Split window horizontally | sh | -| Split window vertically | sv | -| Move to previous tab | tp | -| Move to next tab | tn | -| Close a tab | tx | -| Open current tab in a new tab | t0 | -| Open a new tab | to | -| Dismiss all notification windows currently displayed | cn | -| Toggle LSP diagnostics visibility | lx | -| Copy the path of the file in the clipboard | fp | +| Next hunk | `]h` | +| Previous hunk | `[h` | +| Stage hunk | `gs` | +| Reset hunk | `gr` | +| Stage buffer | `gS` | +| Reset buffer | `gR` | +| Undo stage hunk | `gu` | +| Preview hunk | `gp` | +| Toggle line blame | `gB` | +| Diff this | `gd` | +| Diff this ~ | `gD` | -#### Editor +--- + +### Git (Worktree) | Function | Keymap | | -------------- | --------------- | -| Toggle Undo Tree | u | +| List git worktrees | `gwt` | +| Create git worktree | `gwc` | + +--- -#### Git CMDs +### Trouble | Function | Keymap | | -------------- | --------------- | -| LazyGit | gwc | -| Create Git Worktree Branches | gwt | -| Toggle Git Blame | gbl | -| Git diff (hunks) (Snacks) | gd | -| Lazygit Logs (Snacks) | gl | -| Lazygit (Snacks) | lg | -| Pick & Switch Git Branches | gbr | +| Workspace diagnostics | `xw` | +| Document diagnostics | `xd` | +| Symbols/todos | `xt` | +| Location list | `xl` | +| Quickfix list | `xq` | -#### Multi-Cursor +--- + +### Multi-Cursor | Function | Keymap | | -------------- | --------------- | -| Line Skip Cursor (+1) | j | -| Line Skip Cursor (-1) | k | +| Line Skip Cursor (+1) | `j` | +| Line Skip Cursor (-1) | `k` | + +--- -#### Telescope +### Color-Picker | Function | Keymap | | -------------- | --------------- | -| Telescope Themes | ths | -| Find Connected Words under Cursor | pWs | -| Fuzzy Find Notifications | pn | -| Fuzzy Find recent files | pr | +| Toggle color highlighter | `cc` | -#### Harpoon +--- + +### LSP Commands | Function | Keymap | | -------------- | --------------- | -| Harpoon Remove File | d4 | -| Harpoon to File 1 | 4 | -| Harpoon quick menu | hl | -| Add file to Harpoon | ha | +| Show LSP info | `:LspInfo` | +| Stop LSP clients | `:LspStop` | +| Start LSP | `:LspStart` | +| Restart LSP | `:LspRestart` | + +--- -there are also variations to some commands -for eg: Harpoon to file 1,2,3,4 and corresponding remove file cmds +### Misc +| Function | Keymap | +| -------------- | --------------- | +| Wrap with abbreviation | `xe` | +| Clear notifications | `cn` | \ No newline at end of file From 80ae950fee1eea9d478191cb863646b4a68d1957 Mon Sep 17 00:00:00 2001 From: Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> Date: Fri, 24 Apr 2026 19:36:04 +0530 Subject: [PATCH 4/6] docs(nvim:keymaps): add Mode Column --- README.md | 282 +++++++++++++++++++++++++++--------------------------- 1 file changed, 141 insertions(+), 141 deletions(-) diff --git a/README.md b/README.md index 6f4a9ae..9c0ca14 100644 --- a/README.md +++ b/README.md @@ -9,208 +9,208 @@ how a keymap works? --- ### General -| Function | Keymap | -| -------------- | --------------- | -| Move lines down in visual selection | `J` | -| Move lines up in visual selection | `K` | -| Join current line with one below | `J` | -| Scroll up (cursor centered) | `` | -| Scroll down (cursor centered) | `` | -| Next search match (centered) | `n` | -| Previous search match (centered) | `N` | -| Clear search highlight | `C` | -| Indent selection left (keep selection) | `<` | -| Indent selection right (keep selection) | `>` | -| Format current buffer with LSP | `f` | -| Replace current word globally | `r` | -| Make current file executable | `X` | -| Execute current file | `XX` | -| Build project in build directory | `mk` | -| Build and run tests | `rt` | -| Copy file path to clipboard | `fp` | -| Toggle LSP diagnostics | `lx` | -| Buffer Local Keymaps (which-key) | `?` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Move lines down in visual selection | `J` | v | +| Move lines up in visual selection | `K` | v | +| Join current line with one below | `J` | n | +| Scroll up (cursor centered) | `` | n | +| Scroll down (cursor centered) | `` | n | +| Next search match (centered) | `n` | n | +| Previous search match (centered) | `N` | n | +| Clear search highlight | `C` | n | +| Indent selection left (keep selection) | `<` | v | +| Indent selection right (keep selection) | `>` | v | +| Format current buffer with LSP | `f` | n | +| Replace current word globally | `r` | n | +| Make current file executable | `X` | n | +| Execute current file | `XX` | n | +| Build project in build directory | `mk` | n | +| Build and run tests | `rt` | n | +| Copy file path to clipboard | `fp` | n | +| Toggle LSP diagnostics | `lx` | n | +| Buffer Local Keymaps (which-key) | `?` | n | --- ### Clipboard -| Function | Keymap | -| -------------- | --------------- | -| Paste without replacing clipboard | `P` (visual) | -| Paste without copying selection | `p` (visual) | -| Delete without yanking | `x` | -| Delete to black hole (char) | `Ds` | -| Delete to black hole (line) | `Dl` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Paste without replacing clipboard | `P` | x | +| Paste without copying selection | `p` | v | +| Delete without yanking | `x` | n | +| Delete to black hole (char) | `Ds` | n/v | +| Delete to black hole (line) | `Dl` | n/v | --- ### Tabs -| Function | Keymap | -| -------------- | --------------- | -| Open a new tab | `to` | -| Open current file in new tab | `tO` | -| Close current tab | `tx` | -| Move to next tab | `tn` | -| Move to previous tab | `tp` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Open a new tab | `to` | n | +| Open current file in new tab | `tO` | n | +| Close current tab | `tx` | n | +| Move to next tab | `tn` | n | +| Move to previous tab | `tp` | n | --- ### Splits -| Function | Keymap | -| -------------- | --------------- | -| Split window vertically | `sv` | -| Split window horizontally | `sh` | -| Make splits equal size | `se` | -| Close current split | `sx` | -| Move to left split | `` | -| Move to below split | `` | -| Move to up split | `` | -| Move to right split | `` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Split window vertically | `sv` | n | +| Split window horizontally | `sh` | n | +| Make splits equal size | `se` | n | +| Close current split | `sx` | n | +| Move to left split | `` | n | +| Move to below split | `` | n | +| Move to up split | `` | n | +| Move to right split | `` | n | --- ### Snacks -| Function | Keymap | -| -------------- | --------------- | -| TODO/Fix/FIXME | `pT` | -| Look through ToDo comments | `pt` | -| Disable Indentated Lines | `ic` | -| Enable Indentated Lines | `io` | -| Help Pages | `vh` | -| Pick & Switch Git Branches | `gbr` | -| Pick Color Schemes | `th` | -| Search Man Pages | `pm` | -| Search Registers | `p'` | -| Search Keymaps | `pk` | -| Grep a visual selection | `pvs` | -| Grep Something | `pw` | -| Find nvim config files | `pc` | -| Find Files | `pf` | -| Close Buffer | `dB` | -| Fast Rename Current File | `R` | -| Git diff (hunks) | `gd` | -| Lazygit Logs | `gl` | -| Lazygit | `lg` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| TODO/Fix/FIXME | `pT` | n | +| Look through ToDo comments | `pt` | n | +| Disable Indentated Lines | `ic` | n | +| Enable Indentated Lines | `io` | n | +| Help Pages | `vh` | n | +| Pick & Switch Git Branches | `gbr` | n | +| Pick Color Schemes | `th` | n | +| Search Man Pages | `pm` | n | +| Search Registers | `p'` | n | +| Search Keymaps | `pk` | n | +| Grep a visual selection | `pvs` | v | +| Grep Something | `pw` | n | +| Find nvim config files | `pc` | n | +| Find Files | `pf` | n | +| Close Buffer | `dB` | n | +| Fast Rename Current File | `R` | n | +| Git diff (hunks) | `gd` | n | +| Lazygit Logs | `gl` | n | +| Lazygit | `lg` | n | --- ### Linting -| Function | Keymap | -| -------------- | --------------- | -| Trigger linting for current file | `l` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Trigger linting for current file | `l` | n | --- ### Mini (Files/Comment/Trailspace) -| Function | Keymap | -| -------------- | --------------- | -| Open MiniFiles explorer | `e` | -| Open MiniFiles at current file | `E` | -| Toggle hidden files | `H` | -| Trim trailing whitespace | `ts` | -| Clear trailing whitespace highlight | `tc` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Open MiniFiles explorer | `e` | n | +| Open MiniFiles at current file | `E` | n | +| Toggle hidden files | `H` | n | +| Trim trailing whitespace | `ts` | n | +| Clear trailing whitespace highlight | `tc` | n | --- ### Telescope -| Function | Keymap | -| -------------- | --------------- | -| Fuzzy find recent files | `pr` | -| Fuzzy find notifications | `pn` | -| Find word under cursor | `pWs` | -| Switch themes | `ths` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Fuzzy find recent files | `pr` | n | +| Fuzzy find notifications | `pn` | n | +| Find word under cursor | `pWs` | n | +| Switch themes | `ths` | n | --- ### Harpoon -| Function | Keymap | -| -------------- | --------------- | -| Add file to harpoon | `ha` | -| Toggle harpoon quick menu | `hl` | -| Jump to file 1 | `1` | -| Jump to file 2 | `2` | -| Jump to file 3 | `3` | -| Jump to file 4 | `4` | -| Remove file 1 | `d1` | -| Remove file 2 | `d2` | -| Remove file 3 | `d3` | -| Remove file 4 | `d4` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Add file to harpoon | `ha` | n | +| Toggle harpoon quick menu | `hl` | n | +| Jump to file 1 | `1` | n | +| Jump to file 2 | `2` | n | +| Jump to file 3 | `3` | n | +| Jump to file 4 | `4` | n | +| Remove file 1 | `d1` | n | +| Remove file 2 | `d2` | n | +| Remove file 3 | `d3` | n | +| Remove file 4 | `d4` | n | --- ### Git (Fugitive) -| Function | Keymap | -| -------------- | --------------- | -| Open Git status | `gg` | -| Git push (fugitive buffer) | `P` | -| Git pull with rebase (fugitive buffer) | `p` | -| Set upstream (fugitive buffer) | `t` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Open Git status | `gg` | n | +| Git push (fugitive buffer) | `P` | n | +| Git pull with rebase (fugitive buffer) | `p` | n | +| Set upstream (fugitive buffer) | `t` | n | --- ### Git (Gitsigns) -| Function | Keymap | -| -------------- | --------------- | -| Next hunk | `]h` | -| Previous hunk | `[h` | -| Stage hunk | `gs` | -| Reset hunk | `gr` | -| Stage buffer | `gS` | -| Reset buffer | `gR` | -| Undo stage hunk | `gu` | -| Preview hunk | `gp` | -| Toggle line blame | `gB` | -| Diff this | `gd` | -| Diff this ~ | `gD` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Next hunk | `]h` | n | +| Previous hunk | `[h` | n | +| Stage hunk | `gs` | n | +| Reset hunk | `gr` | n | +| Stage buffer | `gS` | n | +| Reset buffer | `gR` | n | +| Undo stage hunk | `gu` | n | +| Preview hunk | `gp` | n | +| Toggle line blame | `gB` | n | +| Diff this | `gd` | n | +| Diff this ~ | `gD` | n | --- ### Git (Worktree) -| Function | Keymap | -| -------------- | --------------- | -| List git worktrees | `gwt` | -| Create git worktree | `gwc` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| List git worktrees | `gwt` | n | +| Create git worktree | `gwc` | n | --- ### Trouble -| Function | Keymap | -| -------------- | --------------- | -| Workspace diagnostics | `xw` | -| Document diagnostics | `xd` | -| Symbols/todos | `xt` | -| Location list | `xl` | -| Quickfix list | `xq` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Workspace diagnostics | `xw` | n | +| Document diagnostics | `xd` | n | +| Symbols/todos | `xt` | n | +| Location list | `xl` | n | +| Quickfix list | `xq` | n | --- ### Multi-Cursor -| Function | Keymap | -| -------------- | --------------- | -| Line Skip Cursor (+1) | `j` | -| Line Skip Cursor (-1) | `k` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Line Skip Cursor (+1) | `j` | n | +| Line Skip Cursor (-1) | `k` | n | --- ### Color-Picker -| Function | Keymap | -| -------------- | --------------- | -| Toggle color highlighter | `cc` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Toggle color highlighter | `cc` | n | --- ### LSP Commands -| Function | Keymap | -| -------------- | --------------- | -| Show LSP info | `:LspInfo` | -| Stop LSP clients | `:LspStop` | -| Start LSP | `:LspStart` | -| Restart LSP | `:LspRestart` | +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Show LSP info | `:LspInfo` | n | +| Stop LSP clients | `:LspStop` | n | +| Start LSP | `:LspStart` | n | +| Restart LSP | `:LspRestart` | n | --- ### Misc -| Function | Keymap | -| -------------- | --------------- | -| Wrap with abbreviation | `xe` | -| Clear notifications | `cn` | \ No newline at end of file +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Wrap with abbreviation | `xe` | n/v | +| Clear notifications | `cn` | n | \ No newline at end of file From dca138fcea265df48a0bdb264c90a4ac36bbc956 Mon Sep 17 00:00:00 2001 From: Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> Date: Fri, 24 Apr 2026 19:42:27 +0530 Subject: [PATCH 5/6] docs(nvim:keymaps): add remaining keymaps --- README.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9c0ca14..3373214 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ how a keymap works? | Indent selection left (keep selection) | `<` | v | | Indent selection right (keep selection) | `>` | v | | Format current buffer with LSP | `f` | n | +| Format whole file or range (conform) | `mf` | n/v | | Replace current word globally | `r` | n | | Make current file executable | `X` | n | | Execute current file | `XX` | n | @@ -74,6 +75,8 @@ how a keymap works? | -------------- | --------------- | ----- | | TODO/Fix/FIXME | `pT` | n | | Look through ToDo comments | `pt` | n | +| Next todo comment | `]t` | n | +| Previous todo comment | `[t` | n | | Disable Indentated Lines | `ic` | n | | Enable Indentated Lines | `io` | n | | Help Pages | `vh` | n | @@ -153,8 +156,8 @@ how a keymap works? | -------------- | --------------- | ----- | | Next hunk | `]h` | n | | Previous hunk | `[h` | n | -| Stage hunk | `gs` | n | -| Reset hunk | `gr` | n | +| Stage hunk | `gs` | n/v | +| Reset hunk | `gr` | n/v | | Stage buffer | `gS` | n | | Reset buffer | `gR` | n | | Undo stage hunk | `gu` | n | @@ -162,6 +165,7 @@ how a keymap works? | Toggle line blame | `gB` | n | | Diff this | `gd` | n | | Diff this ~ | `gD` | n | +| Select hunk | `ih` | o/x | --- @@ -206,6 +210,48 @@ how a keymap works? | Stop LSP clients | `:LspStop` | n | | Start LSP | `:LspStart` | n | | Restart LSP | `:LspRestart` | n | +| Show LSP references | `gR` | n | +| Go to declaration | `gD` | n | +| Show LSP definitions | `gd` | n | +| Show LSP implementations | `gi` | n | +| Show LSP type definitions | `gt` | n | +| Code actions | `vca` | n/v | +| Smart rename | `rn` | n | +| Show buffer diagnostics | `D` | n | +| Show line diagnostics | `d` | n | +| Show documentation (hover) | `K` | n | +| Restart LSP (buffer) | `rs` | n | +| Signature help (insert mode) | `` | i | + +--- + +### Clasp (Auto-pairing) +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Wrap next (forward) | `` | n/i | +| Wrap previous (backward) | `` | n/i | +| Undo in insert mode | `` | i | + +--- + +### Oil (File Explorer) +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Open parent directory | `-` | n | +| Open parent directory (floating) | `-` | n | +| Toggle hidden files | `g.` | n | +| Show help | `g?` | n | +| Refresh | `` | n | +| Close | `q` | n | + +--- + +### Folding (Ufo) +| Function | Keymap | Mode | +| -------------- | --------------- | ----- | +| Open all folds | `zR` | n | +| Close all folds | `zM` | n | +| Fold / Unfold at cursor | `za` | n | --- @@ -213,4 +259,5 @@ how a keymap works? | Function | Keymap | Mode | | -------------- | --------------- | ----- | | Wrap with abbreviation | `xe` | n/v | -| Clear notifications | `cn` | n | \ No newline at end of file +| Clear notifications | `cn` | n | +| Toggle undo-tree | `u` | n | From 31551aee8e81cb275959aeea31d23073977b0714 Mon Sep 17 00:00:00 2001 From: Prakhar Sharma <149769581+Prakhar1808@users.noreply.github.com> Date: Fri, 24 Apr 2026 19:54:03 +0530 Subject: [PATCH 6/6] docs: add Table Of Contents --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 3373214..dc3f2a6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,31 @@ how a keymap works? --- +## Table of Contents + +- [General](#general) +- [Clipboard](#clipboard) +- [Tabs](#tabs) +- [Splits](#splits) +- [Snacks](#snacks) +- [Linting](#linting) +- [Mini](#mini) +- [Telescope](#telescope) +- [Harpoon](#harpoon) +- [Git (Fugitive)](#git-fugitive) +- [Git (Gitsigns)](#git-gitsigns) +- [Git (Worktree)](#git-worktree) +- [Trouble](#trouble) +- [Multi-Cursor](#multi-cursor) +- [Color-Picker](#color-picker) +- [LSP Commands](#lsp-commands) +- [Clasp](#clasp) +- [Oil](#oil) +- [Folding (Ufo)](#folding-ufo) +- [Misc](#misc) + +--- + ### General | Function | Keymap | Mode | | -------------- | --------------- | ----- |