nvim-config

nvim-config is a skill for Claude Code from fredrikaverpil/dotfiles. It costs 137 tokens per session (2,111 once invoked), scanned A, original, MIT.

A guide to organizing and writing Neovim configuration using Neovim's built-in systems, without a plugin-manager framework. Neovim is a keyboard-focused code editor that can be customized through configuration files.

In plain words
What is it for?
Use it when writing, reviewing, or changing a native Neovim setup, including plugin loading, startup behavior, language-server configuration, and shared settings. It requires Neovim 0.12 or newer.
Why use it?
It provides consistent file locations and loading patterns for plugins and editor settings, reducing guesswork when maintaining this kind of configuration.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when writing, reviewing, or changing a native Neovim setup, including plugin loading, startup behavior, language-server configuration, and shared settings. It requires Neovim 0.12 or newer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fredrikaverpil/dotfiles/nvim-config
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fredrikaverpil/dotfiles --skill nvim-config
Clone the repo
git clone --depth 1 https://github.com/fredrikaverpil/dotfiles

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nvim-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/fredrikaverpil/dotfiles/nvim-config/github.svg)](https://agentmods.dev/skills/fredrikaverpil/dotfiles/nvim-config)
Your own site
<a href="https://agentmods.dev/skills/fredrikaverpil/dotfiles/nvim-config"><img src="https://agentmods.dev/badge/skills/fredrikaverpil/dotfiles/nvim-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nvim-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/fredrikaverpil/dotfiles/nvim-config"><img src="https://agentmods.dev/badge/skills/fredrikaverpil/dotfiles/nvim-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 21
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium Prompt Injection · line 49
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.02111
Opus 5.5 $0.00055 $0.00844
Sonnet 5.5 $0.00027 $0.00422
Haiku 4.5 $0.00014 $0.00211

Measured 12d ago against content hash bc7ff938d58b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nvim-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

stow/shared/.claude/skills/nvim-config/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Native Neovim config

Conventions for Neovim configs built on vim.pack, lsp/ and plugin/ with no plugin manager framework. Requires Neovim >= v0.12.0.

References — read the one the task needs:

File Covers
references/loading-patterns.md vim.pack.add's load option, the three loading patterns, build hooks, profiling
references/plugin-files.md File skeleton per pattern, _G.Config sharing, do/end blocks, ftplugin, option interfaces
references/startup.md :h initialization step table, runtime directories, after/, exrc, help tags, standard paths

This config's location

The native config lives at ~/.dotfiles/stow/shared/.config/nvim-fredrik/ inside the dotfiles repo. stow.sh links it into place as a whole directory, so new files show up without a restow:

~/.dotfiles/stow/shared/.config/nvim-fredrik/   <- actual files (edit here)
~/.config/nvim-fredrik -> ~/.dotfiles/stow/shared/.config/nvim-fredrik

Launch it with NVIM_APPNAME=nvim-fredrik nvim. Neovim itself comes from nixpkgs-unstable via home-manager (nix/shared/home/common.nix) -- binary at ~/.nix-profile/bin/nvim.

Architecture

No framework -- each directory has a single responsibility:

Layer Directory Role
options lua/options.lua All vim.opt settings, required from init.lua
utility lua/ Shared Lua modules: lazyload.lua, merge.lua, fold.lua, toggle.lua, pickers, etc.
plugins plugin/ Self-contained plugin files: install + setup + keymaps
lang plugins plugin/lang/ Per-language plugin installs, custom filetypes, autocmds, and setup
editor settings ftplugin/ Per-filetype vim.opt_local (indent, wrap, conceal)
server config after/lsp/ All LSP server config tables (in after/ to override package defaults)

Read the full file on GitHub · 169 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · -1 lines bc7ff938d58b
  2. 17d ago Changed 9dd21b4ba780
  3. 28d ago Changed · -3 lines 88cabea4a969
  4. 1mo ago Changed c481c552b3fc
  5. 1mo ago First seen · 173 lines · 137 tokens per session scan A cc8bbf59df46

Subscribe to this mod's changes

nvim-config is a skill published in the GitHub repository fredrikaverpil/dotfiles (259 stars, last pushed yesterday), licensed MIT. It adds 137 tokens to every session and 2,111 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.