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 | |
|---|---|
| pet | Simple command-line snippet manager |
| YASnippet | Template system for Emacs |
| nap | Code snippets in your terminal |
| Gisto | Code snippet manager |
| massCode | Code snippets manager for developers |
| boom | Manages your text snippets on the command line |
| The Way | Code snippets manager written in Rust |
| ScriptHaus | Organize scripts and bash one-liners |
| Snip | Simple snippet manager for your predefined Ultisnips Snippet Directory |
| snip | Simple snippet manager for bash |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.