nvim-config

Edit Neovim init.lua for plugins, keybindings, LSP, and UI.

Updated Sep 1, 2019
One-click install
npx skills add https://github.com/taketsuru-devel/dotfiles --skill nvim-config-taketsuru-devel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nvim-config
Source: https://github.com/taketsuru-devel/dotfiles/tree/main/skills/nvim-config
Command: npx skills add https://github.com/taketsuru-devel/dotfiles --skill nvim-config-taketsuru-devel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides editing and managing Neovim configuration (~/.config/nvim/init.lua). It helps with plugin management (lazy.nvim), keybindings, LSP setup, UI tweaks, and overall Neovim customization, reducing setup time and complexity.

Core Features & Use Cases

  • Plugin management: Setup and configure plugins using lazy.nvim with sensible defaults.
  • Keybinding customization: Create ergonomic mappings for normal, visual, and insert modes.
  • LSP & tooling: Install and configure LSP servers (via Mason) and associated tooling.
  • UI tweaks: Configure statusline, file tree, and color schemes for a cohesive workflow.

Quick Start

In your Neovim config environment, ask: "Configure my init.lua to enable lazy.nvim and add a leader-key mapping to toggle NvimTree, while enabling relative line numbers."

Frequently Asked Questions about nvim-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up lazy.nvim for plugin management in Neovim?

lazy.nvim automates plugin installation and configuration in Neovim. Add lazy.nvim to your init.lua, define plugins in Lua tables with their Git repositories, and lazy.nvim handles downloading, loading, and updates automatically with sensible defaults for performance.

Can I configure LSP servers in Neovim without manual installation?

Yes. Mason integrates with Neovim to install and manage LSP servers, formatters, and linters directly from init.lua. Configure Mason in lazy.nvim, then specify which servers to install; Mason handles setup and ensures syntax correctness across LSP workflows.

What's the best way to customize keybindings across Neovim modes?

Use vim.keymap.set() in init.lua to define mappings for normal, visual, and insert modes with ergonomic leader-key sequences. This approach centralizes all keybindings in one file, ensures consistency, and supports mode-specific behavior without external tools.

How do I apply color schemes and UI tweaks to my Neovim configuration?

Install color scheme plugins (like tokyonight) via lazy.nvim and configure them in init.lua using vim.opt and vim.g for options and globals. Customize statusline, file tree (nvim-tree), and visual elements through plugin blocks and Lua settings.

Do I need to back up my init.lua before making configuration changes?

Yes. The Skill includes validation steps and documented workflows to ensure syntax correctness before applying changes. Maintaining backups of your init.lua prevents losing working configurations if edits introduce errors.