Neovim Snippets

Up: Neovim Config Tutorial Down: completion cockpit, filetype detection

Snippets here are recipes, not commandments. They should save keystrokes where a pattern is real and stay quiet where the pattern is imaginary.

Community Snippets

friendly-snippets feeds Blink with common snippets across many languages. It is the broad pantry.

Local Snippets

The repository also keeps local snippets under snippets/. They cover areas such as Python, TeX, Git commit messages, Vue TypeScript, Manim, Jinja2, Java, C, Markdown, Lua, Neovim help, norg, Rust, and comments.

snippets/package.json declares selected snippet files for filetypes such as Python, TeX, and commit messages.

{
  "contributes": {
    "snippets": [
      { "language": "python", "path": "./python.json" },
      { "language": "tex", "path": "./tex.json" }
    ]
  }
}

LuaSnip Note

There is LuaSnip configuration in the tree for autosnippets and history behavior if LuaSnip is present. The visible active completion stack, however, is Blink with friendly-snippets. Do not teach this config as a LuaSnip-first setup unless the plugin is actually enabled.

Snippet Taste

A good snippet is a remembered movement. It should feel like pulling a familiar tool from the same hook every time.

Related: completion cockpit, language plugins