neovim

📁 g1joshi/agent-skills 📅 3 days ago
1
总安装量
1
周安装量
#50191
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill neovim

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

Neovim

Neovim is the future of Vim. v0.11 (2025) brings built-in completion, enhanced LSP, and mature Tree-sitter integration.

When to Use

  • Keyboard Centric: You never want to touch the mouse.
  • Speed: You want an editor that starts in 20ms.
  • Customization: You want to build your own editor using Lua.

Core Concepts

Lua Config (init.lua)

Configuration is code. Modules, loops, conditionals. vim.opt.number = true

LSP (Language Server Protocol)

Built-in client. Connects to pyright, tsserver, rust-analyzer natively.

Tree-sitter

Parsing library for syntax highlighting. Understanding code structure (AST), not just Regex.

Best Practices (2025)

Do:

  • Use a Distro (Optional): LazyVim, AstroNvim, or NvChad are great starting points for 2025.
  • Use lazy.nvim: The standard plugin manager.
  • Use Built-ins: v0.11 has many features (commenting, diagnostics) that used to need plugins. Check :help news.

Don’t:

  • Don’t copy huge configs: Understand every line you add to init.lua.

References