1 repositorio
Checks whether a referenced node contains text and inserts one string if it does and another if it does not.
Distinct from Dynamic Content Insertion: Distinct from Dynamic Content Insertion: inserts conditional fallback text based on node emptiness, not arbitrary dynamic data.
Explore 1 awesome GitHub repository matching web development · Conditional Fallback Insertions. Refine with filters or upvote what's useful.
LuaSnip is a scriptable text expansion framework and Lua-based snippet engine. It allows for the creation of reusable text templates and complex nested structures that expand into a buffer using triggers and jumpable tabstops. The system distinguishes itself by using abstract syntax trees to trigger expansions based on structural code patterns rather than simple text matching. It features a multi-format importer capable of parsing snippet definitions from community standards such as LSP and SnipMate. The framework covers dynamic code generation through Lua functions, regex-based capture grou
Inserts conditional fallback text based on whether a referenced snippet node is empty.