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 |
| LuaSnip | Highly configurable completion engine for Neovim editing workflows |
| nap | Code snippets in your terminal |
| Gisto | Code snippet manager |
| massCode | Local-first developer workspace |
| The Way | Code snippets manager written in Rust |
| SnipKit | Fast command-line tool for saving and recalling reusable commands |
| ScriptHaus | Organize scripts and bash one-liners |
| snip | Simple snippet manager for bash |
| Snip | Simple snippet manager for your predefined Ultisnips Snippet Directory |
| SafeScript | Securely store and organise reusable shell commands and scripts |
| boom | Manages your text snippets on the command line |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.