LuaSnip icon indicating copy to clipboard operation
LuaSnip copied to clipboard

[FeatureRequest] Provide additional options for conditionally loading snippets

Open charleslambert opened this issue 2 years ago • 1 comments

Request: Provide a mechanism to check additional conditions that do not directly relate to file type when snippets are loaded.

Example: Check if the current file has the word "Test" in it's name and load testing specific snippets for that file type.

charleslambert avatar Jul 15 '22 23:07 charleslambert

Mhmm, you could use an autocommand to extend the filetype of these files to originalfiletype.testing and register these snippets for the filetype testing, that would be pretty simple

L3MON4D3 avatar Jul 16 '22 05:07 L3MON4D3