LuaSnip – snippet engine for Neovim

LuaSnip is a snippet engine for Neovim written entirely in Lua.

It supports simple text expansion as well as dynamic snippets that generate or transform content based on user input. Snippets can be written in Lua or loaded from collections using LSP, VS Code, or SnipMate syntax.

This is free and open source software.

Key Features

  • Offers tabstops, choices, and nested snippets.
  • Creates dynamic snippets based on user input.
  • Transforms text using Lua functions.
  • Supports conditional snippet expansion.
  • Provides regular expression triggers.
  • Offers automatically triggered snippets.
  • Supports postfix snippets.
  • Loads filetype-specific snippets.
  • Parses LSP, VS Code, and SnipMate snippets.
  • Resolves the filetype at the cursor using Treesitter.
  • Maintains snippet history for returning to earlier snippets.
  • Integrates with completion engines including nvim-cmp.

Website: github.com/L3MON4D3/LuaSnip
Support:
Developer: L3MON4D3
License: Apache License 2.0

LuaSnip is written in Lua. Learn Lua with our recommended free books and free tutorials.


Related Software

Snippet Tools
petSimple command-line snippet manager
YASnippetTemplate system for Emacs
napCode snippets in your terminal
GistoCode snippet manager
massCodeCode snippets manager for developers
boomManages your text snippets on the command line
The WayCode snippets manager written in Rust
ScriptHausOrganize scripts and bash one-liners
SnipSimple snippet manager for your predefined Ultisnips Snippet Directory
snipSimple snippet manager for bash

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted