Skip to content
george-tkPublic

About

A launch point for your personal nvim configuration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Β 
Β 

Latest commit

Β 

History

487 Commits

Folders and files

Repository files navigation

Personal Neovim Configuration

A modern, fast, modular Neovim IDE configuration powered by lazy.nvim, snacks.nvim, sqmeow.nvim, opencode.nvim, neocodeium, blink.cmp, and nvim-origami.


πŸ“¦ Prerequisites & Installation

1. Neovim Installation (>= 0.10.0 Required)

This configuration utilizes Neovim 0.10+ native features (LSP inlay hints, diagnostics structure, vim.uv, Treesitter foldexpr, and modern plugin APIs).

Operating System Installation Method / Command
Ubuntu / Debian sudo add-apt-repository ppa:neovim-ppa/unstable -y && sudo apt update && sudo apt install -y neovim
(Or download the official AppImage below)
Arch Linux sudo pacman -S neovim
Fedora sudo dnf install neovim
macOS (Homebrew) brew install neovim
Windows (winget) winget install Neovim.Neovim
Universal Linux (AppImage) bash<br>curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.appimage<br>chmod u+x nvim-linux-x86_64.appimage<br>sudo mv nvim-linux-x86_64.appimage /usr/local/bin/nvim<br>

Verify your Neovim version:

nvim --version # Must be >= 0.10.0

2. External Dependencies

To enable all features (fuzzy pickers, code completion, Tree-sitter parsers, database tooling, formatters, and AI assistance), install the following tools:

Tool Purpose in Configuration
git Plugin management via lazy.nvim, neogit, diffview, and gitsigns
make & gcc / clang C compiler for Treesitter parsers and LuaSnip regex extensions
ripgrep (rg) Fast workspace search & live grep in snacks.picker
fd / fd-find Fast file indexing and image search in snacks.picker / snacks.image
unzip, tar, curl Required by mason.nvim to download and unpack LSPs and formatters
nodejs & npm / pnpm Required for Mason formatters & LSPs (prettier, sql-formatter, etc.)
python3 & pip Python language support and linters
sqlite3 SQLite CLI engine for local database testing
opencode CLI (Optional) AI coding assistant integration (opencode.nvim)

One-Liner Dependency Installation by OS:

  • Ubuntu / Debian:

    sudo apt update && sudo apt install -y \
      git \
      build-essential \
      ripgrep \
      fd-find \
      unzip \
      curl \
      nodejs \
      npm \
      python3 \
      python3-pip \
      sqlite3
    
    # Ubuntu packages fd as fdfind; symlink to fd so Neovim/Snacks can discover it:
    mkdir -p ~/.local/bin
    ln -sf $(which fdfind) ~/.local/bin/fd
  • Arch Linux:

    sudo pacman -S --needed \
      git \
      base-devel \
      ripgrep \
      fd \
      unzip \
      curl \
      nodejs \
      npm \
      python \
      python-pip \
      sqlite
  • Fedora:

    sudo dnf install -y \
      git \
      @development-tools \
      ripgrep \
      fd-find \
      unzip \
      curl \
      nodejs \
      npm \
      python3 \
      python3-pip \
      sqlite
  • macOS (Homebrew):

    brew install git ripgrep fd unzip curl node python sqlite
  • Windows (winget / PowerShell):

    winget install Git.Git BurntSushi.ripgrep.MSVC sharkdp.fd OpenJS.NodeJS Python.Python.3 SQLite.SQLite

OpenCode AI CLI Installation (Optional for <leader>a):

curl -fsSL https://opencode.ai/install | bash

3. Nerd Font Installation (Required for UI Icons)

This configuration has vim.g.have_nerd_font = true enabled and relies on a Nerd Font (v3.0+) for:

  • File tree icons (nvim-web-devicons, Snacks Explorer)
  • Statusline glyphs and database indicators in lualine (σ°†Ό)
  • Markdown rendered heading numerals and badges (render-markdown.nvim: 󰎀 , 󰎧 , σ°Žͺ , etc.)
  • Database tree and drawer node icons in sqmeow.nvim (ο‘Ό, ο‘ , σ°™…, σ°“«, 󰈈, 󰎠, σ°Š•, 󰀄)
  • LSP diagnostic status signs (ξͺ , οœͺ ,  , ξΌΊ )
  • Blink completion item kind icons

Recommended Fonts:

  • JetBrainsMono Nerd Font (Recommended)
  • FiraCode Nerd Font
  • MesloLGS Nerd Font
  • Hack Nerd Font

Installation:

  • Ubuntu / Debian:

    # Ensure fontconfig and curl are installed
    sudo apt install -y fontconfig curl
    
    # Download and install JetBrainsMono Nerd Font
    mkdir -p ~/.local/share/fonts
    curl -fLO https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
    tar -xf JetBrainsMono.tar.xz -C ~/.local/share/fonts/
    rm JetBrainsMono.tar.xz
    fc-cache -fv
  • Arch Linux:

    sudo pacman -S ttf-jetbrains-mono-nerd
  • Fedora:

    sudo dnf copr enable che/nerd-fonts
    sudo dnf install -y jetbrains-mono-nerd-fonts
  • macOS (Homebrew):

    brew install --cask font-jetbrains-mono-nerd-font
  • Windows (winget):

    winget install --id=DEVCOM.JetBrainsMonoNerdFont
  • Universal Linux (Manual Download): Download any font archive from Nerd Fonts Downloads or GitHub Releases, extract .ttf/.otf files to ~/.local/share/fonts/, and run fc-cache -fv.

Important

Configure your Terminal Emulator: After installing the font, open your terminal settings (Alacritty, Kitty, WezTerm, Ghostty, iTerm2, Windows Terminal, etc.) and set the font to JetBrainsMono Nerd Font (or your chosen Nerd Font).


4. Setup & First Launch

1. Backup any existing configuration:

# Backup Neovim config and cache
mv ~/.config/nvim ~/.config/nvim.backup.$(date +%Y%m%d) 2>/dev/null
mv ~/.local/share/nvim ~/.local/share/nvim.backup.$(date +%Y%m%d) 2>/dev/null
mv ~/.local/state/nvim ~/.local/state/nvim.backup.$(date +%Y%m%d) 2>/dev/null
mv ~/.cache/nvim ~/.cache/nvim.backup.$(date +%Y%m%d) 2>/dev/null

2. Clone this repository:

# Via HTTPS:
git clone https://github.com/george-tk/nvim.git ~/.config/nvim

# Or via SSH:
# git clone git@github.com:george-tk/nvim.git ~/.config/nvim

3. Start Neovim:

nvim

On first launch:

  1. lazy.nvim will automatically clone and install all plugins.
  2. mason-tool-installer will automatically install configured LSPs (lua_ls, marksman) and formatters (stylua, prettier, sql-formatter).
  3. nvim-treesitter will compile syntax parsers.

4. Verify System Health:

Run the built-in health check to confirm all tools and dependencies are properly detected:

:checkhealth

5. Authenticate Free AI Autocomplete (Codeium / NeoCodeium):

  1. In Neovim, press <leader>au (or run :NeoCodeium auth).
  2. Open the URL shown in your browser to sign in or create your free Codeium account.
  3. Copy the authentication token provided on the webpage.
  4. Paste the token into the Neovim prompt at the bottom and press Enter.
  5. (Done!) Inline AI ghost text is now ready and will automatically suggest code as you type in Insert mode.

🎯 Unified Spatial IDE Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                        β”‚       Right Panel        β”‚
β”‚                      Code Editor                       β”‚         (<C-l>)          β”‚
β”‚                        (Center)                        β”‚                          β”‚
β”‚                                                        β”‚  1. File Explorer (35 w) β”‚
β”‚                                                        β”‚  2. DB Explorer (35 w)   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€  3. OpenCode AI (38% w)  β”‚
β”‚            Unified Bottom Output (<C-j>)               β”‚  (Only ONE ever visible) β”‚
β”‚                                                        β”‚                          β”‚
β”‚  1. Persistent Multi-Terminals (<leader>T / [N]<C-j>)  β”‚  * DB Drawer is never    β”‚
β”‚  2. SQL Query Results Table (<leader>bo / <leader>br)  β”‚    split by queries      β”‚
β”‚  (Strictly Center-Scoped, never splits the right side) β”‚                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🧭 Spatial Navigation & Window Management

1. Panel Toggling

Keybinding Action Description
<C-l> Right Panel Dynamically toggle active right tool (File Explorer, DBUI, AI)
<C-j> Bottom Output Dynamically toggle active bottom tool (Terminal, SQL Results)
<C-h> Editor Left Return directly to Code Editor from any side panel
<C-k> Editor Up Navigate up from bottom output back into Code Editor

2. Resizing & Layout Reset (Alt + hjkl & <C-w>=)

Keybinding Mode Action
<M-h> Normal, Insert, Terminal Shrink width by 3 columns
<M-l> Normal, Insert, Terminal Expand width by 3 columns
<M-k> Normal, Insert, Terminal Expand height by 2 lines
<M-j> Normal, Insert, Terminal Shrink height by 2 lines
<C-w>= Normal Reset all windows to default IDE dimensions

πŸ“‚ Universal Folding & Explorer Controls (h / l)

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Zone                    β”‚ Left / Collapse (h)              β”‚ Right / Expand (l / CR)         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 1. File Explorer        β”‚ Collapse folder / go to parent   β”‚ Expand / Open file              β”‚
β”‚ 2. Database Explorer    β”‚ Collapse table / go to parent    β”‚ Expand / Open table query       β”‚
β”‚ 3. Code Editor Buffer   β”‚ Smart collapse fold (origami)    β”‚ Smart expand fold (origami)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“‘ Complete Keymap Reference (All Uniform 2-Key, Zero Collisions)

πŸ—‚οΈ Buffer & Window Management

Keybinding Action Description
<leader>1 .. <leader>9 Buffer Jump Switch to buffer 1 through 9 instantly
<leader><Tab> Next Buffer Navigate to next open buffer
<leader><S-Tab> Previous Buffer Navigate to previous open buffer
<leader>q Close Buffer Delete current buffer
<leader>r Alternate Buffer Switch to previous alternate buffer
<leader>d Dashboard Return to start dashboard
<leader>z Zen Mode Toggle distraction-free centered Zen Mode
<leader>e File Explorer Open/switch right panel to File Explorer (35 cols)
<leader>T Terminal Open/toggle persistent Terminal at bottom
<leader>p Git Pull Direct 1-key Git pull via Neogit
<leader>P Git Push Direct 1-key Git push via Neogit
<leader>= Format Buffer Run code formatter via Conform

πŸ” Find & Search (<leader>f)

Keybinding Action Description
<leader>ff Find Files Search files in workspace
<leader>fw Find Word Live ripgrep workspace (in visual mode: auto-seeds selection)
<leader>fu Undo History Visual undo diff tree with <C-y>/<C-S-y> yanking
<leader>fr Resume Last Picker Reopen previous picker, query, and scroll position
<leader>fp All Pickers Meta-picker to search and launch any Snacks picker
<leader>fn Notifications Find & view all notification history
<leader>fh Help Tags Neovim help documentation
<leader>fk Keymaps Search all registered keymaps

πŸ—„οΈ Database Studio (<leader>b)

Keybinding Action Description
<leader>be Database Explorer Open Database Explorer drawer on the right panel (35 cols) with Tables, Views, Sequences, Functions, Procedures, Roles
<leader>bs Switch Database Fast fuzzy picker to switch / bind database environments on the fly
<leader>br Run Query Execute statement under cursor or visual block into bottom result grid
<leader>bq Query Scratchpad Open clean, blank SQL buffer connected to active DB
<leader>bw Save Query Bookmark current query to persistent storage
<leader>bl Saved Queries Fuzzy search and open saved queries into editor buffer
<leader>bo Query Output Show/hide Query Results Table without re-executing
<leader>ba Add Database Interactive prompt to add a new connection URL
<leader>bd Delete Database Interactive picker to remove a connection
<leader>bf Float Results Toggle results window between bottom split and centered floating modal
<leader>bv Review Edits Review and commit in-grid cell edits directly to database
<leader>bx Export Results Export query results to CSV, JSON, or SQL insert statements

πŸ“ Todo List (<leader>t)

Keybinding Action Description
<leader>tt Todo List Open interactive Todo List
<leader>tb Todo Board Open Kanban-style Todo Board
<leader>tn New Todo Create new Todo item
<leader>tr Reference Todo Add reference to current code location
<leader>tj Jump to Todo Jump directly to Todo location
<leader>tl Todo Log View completed/archived log

🌿 Git Suite (<leader>g & Direct <leader>p / <leader>P)

Keybinding Action Description
<leader>p Git Pull Quick 1-key pull
<leader>P Git Push Quick 1-key push
<leader>gs Status Neogit status
<leader>gc Commit Open commit editor
<leader>gp Push Git Push popup (or <leader>P directly)
<leader>gl Pull Git Pull popup (or <leader>p directly)
<leader>gb Branch Branch switcher
<leader>gd Diff Diffview open

πŸ“Š Markdown Table Editing (<leader>m)

Keybinding Action Description
<leader>mt Create Table Prompt for table dimensions
<leader>mr Row Below Insert row below cursor
<leader>ma Row Above Insert row above cursor (replaces Shift+R)
<leader>mc Column Right Insert column after cursor
<leader>mb Column Left Insert column before cursor (replaces Shift+C)
<leader>md Delete Row Delete current table row
<leader>mx Delete Column Delete current table column
<leader>mu Update Numbering Renumber ordered lists
<leader>mi Insert Image Search image & insert relative markdown link

πŸ”€ Spelling (<leader>s)

Keybinding Action Description
<leader>st Spelling Toggle Toggle spell check on/off (replaces Shift+S)
<leader>ss Spelling Suggestions Open picker suggestions
<leader>sn Next Spell Error Jump to next error
<leader>sp Previous Spell Error Jump to previous error

πŸ€– AI Suite (<leader>a & Insert Alt-Keys)

1. Inline AI Autocomplete (NeoCodeium)

Keybinding Mode Action Description
<M-a> (Alt+a) Insert Accept Full Suggestion Accept complete inline AI ghost text
<M-w> (Alt+w) Insert Accept Word Accept AI suggestion one word at a time
<M-e> (Alt+e) Insert Accept Line Accept AI suggestion one line at a time
<M-n> (Alt+n) Insert Next Suggestion Cycle to next alternative AI suggestion
<M-p> (Alt+p) Insert Previous Suggestion Cycle to previous alternative AI suggestion
<M-c> (Alt+c) Insert Clear / Dismiss Dismiss currently visible ghost text
<leader>ae Normal Toggle AI Autocomplete Enable or disable inline AI completion globally
<leader>au Normal AI Auth / Status Authenticate with Codeium or check account status

2. OpenCode AI Assistant (opencode.nvim)

Keybinding Action Description
<leader>aa Ask AI Prompt referencing @this selection/file
<leader>as AI Prompts Prompt menu (explain, fix, test, review)
<leader>at AI Panel Right sidebar panel toggle (38% width)
<leader>an New AI Session Fresh conversation
<leader>ac Compact AI Session Compact history to conserve tokens

License

MIT License. Feel free to use and adapt for your own Neovim workflow!

About

A launch point for your personal nvim configuration

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages