Skip to content
0

🚀 Neovim Nightly Configuration

A modular, high-performance Neovim configuration optimized for Neovim Nightly (0.13). This setup prioritizes speed, modern APIs, and a seamless writing and coding experience.

🏗️ Architecture

The configuration is strictly modular, following modern Lua best practices:

  • init.lua: Main entry point.
  • lua/alowree/core/: Base configuration (options, keymaps, autocmds, diagnostics).
  • lua/alowree/plugins/: Individual plugin specifications for lazy.nvim.
  • ftplugin/: Filetype-specific settings (e.g., Markdown folding, indentation).

✨ Key Features

  • Optimized for Nightly: Uses the latest vim.lsp.config and vim.lsp.enable APIs.
  • Lightning Fast Completion: Powered by blink.cmp with LSP, snippets, path, and dictionary sources.
  • Modern UI:
    • snacks.nvim for high-performance pickers, notifications, and explorer.
    • lualine.nvim for a clean statusline.
    • Global statusline and global diagnostic configurations.
  • Advanced Writing & Markdown:
    • Custom Markdown folding logic (H1-H6) with optimized keymaps.
    • Automatic Input Method Switching (IME) for Windows and macOS.
    • conform.nvim for reliable formatting on save.
  • Rich Intelligence:
    • Treesitter for superior highlighting and text-objects.
    • LSP with global capabilities integration.

⌨️ Essential Keymaps

General

KeyAction
<leader>SSource init.lua (hot reload)
<leader>RRestart Neovim
<C-s>Save File
<leader>qaQuit All
<esc>Clear Search Highlights
KeyAction
<C-h/j/k/l>Move focus between windows
<leader>svSplit Window Vertically
<leader>shSplit Window Horizontally
<C-Up/Down/Left/Right>Resize Windows
<leader>bn / bpNext / Previous Buffer
<leader>bbSwitch to Alternate Buffer
<leader>bdDelete Buffer

Editing & Visual

KeyAction
<A-j / k>Move Line Down / Up (Normal/Insert/Visual)
<A-h / l>Go to Start / End of Line
< / >Indent / Outdent (remains in visual mode)
gco / gcOAdd Comment Below / Above
<leader>srSearch & Replace Word (under cursor)
KeyAction
<leader><space>Smart Find Files
<leader>ffFind Files
<leader>fgFind Git Files
<leader>frRecent Files
<leader>sgLive Grep
<leader>skKeymaps
<leader>sdDiagnostics

LSP & Diagnostics

KeyAction
gdGo to Definition
grReferences (Snacks Picker)
gIImplementations
gyType Definition
gLToggle Virtual Lines (Diagnostics)
<leader>lqSend Diagnostics to Quickfix

Markdown & Folding

KeyAction
zj / zk / zl / z;Fold Headings Level 1-4+
zuUnfold All Headings
<CR>Toggle Fold under cursor
ziFold Heading cursor is currently on
am / imAround / Inside Code Block (Text Object)
<leader>tsToggle Spell Check
<leader>twToggle Line Wrap

🛠️ Requirements

  • Neovim Nightly (0.13)
  • Nerd Fonts (for icons)
  • Ripgrep (for searching)
  • External Tools:
    • im-select.exe (Windows) or InputSourceSelector (macOS) for IME switching.
    • prettierd, stylua, black, etc., for formatting.
最近更新