https://github.com/thenameiswiiwin/init.lua
minimal nvim config
https://github.com/thenameiswiiwin/init.lua
Last synced: about 16 hours ago
JSON representation
minimal nvim config
- Host: GitHub
- URL: https://github.com/thenameiswiiwin/init.lua
- Owner: thenameiswiiwin
- Created: 2025-05-21T01:34:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-07-23T19:33:13.000Z (3 months ago)
- Last Synced: 2025-07-23T21:30:32.173Z (3 months ago)
- Language: Lua
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neovim Key Mappings
This document provides a comprehensive reference for all the custom key mappings in this Neovim configuration.
## Table of Contents
- [General Navigation](#general-navigation)
- [File Navigation](#file-navigation)
- [Text Manipulation](#text-manipulation)
- [Clipboard Operations](#clipboard-operations)
- [Search and Replace](#search-and-replace)
- [Git Integration (fugitive)](#git-integration-fugitive)
- [Project Navigation (harpoon)](#project-navigation-harpoon)
- [Code Completion](#code-completion)
- [Debugging](#debugging)
- [Testing (neotest)](#testing-neotest)
- [Snippets](#snippets)
- [Telescope](#telescope)
- [Code Navigation and Diagnostics](#code-navigation-and-diagnostics)
- [Other Tools](#other-tools)## General Navigation
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `pv` | `vim.cmd.Ex` | Open file explorer |
| Normal | `` | `zz` | Scroll down half a page and center cursor |
| Normal | `` | `zz` | Scroll up half a page and center cursor |
| Normal | `n` | `nzzzv` | Go to next search result and center cursor |
| Normal | `N` | `Nzzzv` | Go to previous search result and center cursor |
| Normal | `Q` | `` | Disable Ex mode (Q) |## File Navigation
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `` | Open tmux-sessionizer | Open a new tmux window with tmux-sessionizer |
| Normal | `` | Source current file | Reload the current configuration file |## Text Manipulation
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Visual | `J` | Move selection down | Move selected lines down one line |
| Visual | `K` | Move selection up | Move selected lines up one line |
| Normal | `J` | `mzJ`z` | Join lines and keep cursor position |
| Normal | `=ap` | `ma=ap'a` | Format a paragraph and keep cursor position |
| Normal | `f` | Format buffer | Format the current buffer using conform |
| Insert | `` | `` | Exit insert mode with Ctrl+C |
| Normal | `x` | `chmod +x %` | Make the current file executable |## Clipboard Operations
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Visual | `p` | `"_dP` | Paste over selection without yanking |
| Normal, Visual | `y` | `"+y` | Yank to system clipboard |
| Normal | `Y` | `"+Y` | Yank line to system clipboard |
| Normal, Visual | `d` | `"_d` | Delete without yanking |## Search and Replace
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `s` | `:%s/\<\>//gI` | Search and replace current word |## Git Integration (fugitive)
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `gs` | Open Git status | Open Git status window |
| Normal (fugitive) | `p` | Git push | Push changes to remote |
| Normal (fugitive) | `P` | Git pull rebase | Pull changes with rebase |
| Normal (fugitive) | `t` | Custom push | Push with tracking setup |
| Normal | `gu` | `diffget //2` | Get diff from left side |
| Normal | `gh` | `diffget //3` | Get diff from right side |## Project Navigation (harpoon)
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `A` | Prepend to harpoon list | Add current file to beginning of harpoon list |
| Normal | `a` | Add to harpoon list | Add current file to harpoon list |
| Normal | `` | Toggle harpoon menu | Open/close the harpoon quick menu |
| Normal | `` | Jump to file 1 | Jump to first marked file |
| Normal | `` | Jump to file 2 | Jump to second marked file |
| Normal | `` | Jump to file 3 | Jump to third marked file |
| Normal | `` | Jump to file 4 | Jump to fourth marked file |
| Normal | `` | Replace file 1 | Replace first marked file with current file |
| Normal | `` | Replace file 2 | Replace second marked file with current file |
| Normal | `` | Replace file 3 | Replace third marked file with current file |
| Normal | `` | Replace file 4 | Replace fourth marked file with current file |## Code Completion
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Insert | `` | Select previous item | Navigate to previous completion item |
| Insert | `` | Select next item | Navigate to next completion item |
| Insert | `` | Confirm selection | Confirm current completion selection |
| Insert | `` | Complete | Show completion suggestions |## Debugging
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `dr` | Toggle debug REPL | Toggle debug REPL UI |
| Normal | `ds` | Toggle debug stacks | Toggle debug stacks UI |
| Normal | `dw` | Toggle debug watches | Toggle debug watches UI |
| Normal | `db` | Toggle debug breakpoints | Toggle debug breakpoints UI |
| Normal | `dS` | Toggle debug scopes | Toggle debug scopes UI |
| Normal | `dc` | Toggle debug console | Toggle debug console UI |
| Normal | `` | Debug continue | Continue debugging |
| Normal | `` | Debug step over | Step over in debugger |
| Normal | `` | Debug step into | Step into in debugger |
| Normal | `` | Debug step out | Step out in debugger |
| Normal | `b` | Toggle breakpoint | Toggle breakpoint at current line |
| Normal | `B` | Set conditional breakpoint | Set conditional breakpoint |## Testing (neotest)
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `tr` | Run nearest test | Run the nearest test |
| Normal | `tv` | Toggle test summary | Toggle test summary view |
| Normal | `ts` | Run test suite | Run the entire test suite |
| Normal | `td` | Debug nearest test | Debug the nearest test |
| Normal | `to` | Open test output | Open test output window |
| Normal | `ta` | Run all tests | Run all tests in current directory |## Snippets
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Insert | `e` | Expand snippet | Expand the current snippet |
| Insert, Select | `;` | Jump forward | Jump to next snippet placeholder |
| Insert, Select | `,` | Jump backward | Jump to previous snippet placeholder |
| Insert, Select | `` | Change choice | Change the current choice in a snippet |## Telescope
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `pf` | Find files | Find files in current directory |
| Normal | `` | Git files | Find files tracked by Git |
| Normal | `pws` | Search current word | Search for occurrences of word under cursor |
| Normal | `pWs` | Search current WORD | Search for occurrences of WORD under cursor |
| Normal | `ps` | Grep | Search with grep prompt |
| Normal | `vh` | Help tags | Search through help tags |## Code Navigation and Diagnostics
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `tf` | Run Plenary test file | Run the current test file with Plenary |
| Normal | `zig` | Restart LSP | Restart the Language Server |
| Normal | `` | Next quickfix | Go to next item in quickfix list |
| Normal | `` | Previous quickfix | Go to previous item in quickfix list |
| Normal | `k` | Next location | Go to next item in location list |
| Normal | `j` | Previous location | Go to previous item in location list |
| Normal | `tt` | Toggle trouble | Toggle trouble diagnostic viewer |
| Normal | `[t` | Next trouble item | Jump to next trouble item |
| Normal | `]t` | Previous trouble item | Jump to previous trouble item |## Other Tools
| Mode | Mapping | Action | Description |
|------|---------|--------|-------------|
| Normal | `vwm` | Start Vim With Me | Start Vim With Me session |
| Normal | `svwm` | Stop Vim With Me | Stop Vim With Me session |
| Normal | `ee` | Go error handling | Insert Go error check pattern |
| Normal | `ea` | Go assert.NoError | Insert Go assert.NoError pattern |
| Normal | `ef` | Go log.Fatalf | Insert Go log.Fatalf pattern |
| Normal | `el` | Go logger.Error | Insert Go logger.Error pattern |
| Normal | `ca` | Run cellular automaton | Start "make it rain" animation |
| Normal | `u` | Toggle Undotree | Toggle the undo tree visualization |
| Normal | `zz` | Toggle Zen mode | Toggle Zen mode for focused writing |## Commands
| Command | Action | Description |
|---------|--------|-------------|
| `PeekOpen` | Open Peek | Open the markdown preview |
| `PeekClose` | Close Peek | Close the markdown preview |