From 0139173b94509d1faa42bc9d1adaad73b50df440 Mon Sep 17 00:00:00 2001
From: GitHub Actions
Example:
true
Declared by:
+
+
+<nvf/modules/plugins/snippets/luasnip/luasnip.nix>
+
+ |
vim.snippets.luasnip.customSnippets.snipmate
+
+
+A list containing custom snippets in the SnipMate format to be loaded by LuaSnip.
+ +Type: +attribute set of list of (submodule)
+ +Default:
+{ }
Example:
''
+ {
+ all = [
+ {
+ trigger = "if";
+ body = "if $1 else $2";
+ }
+ ];
+ nix = [
+ {
+ trigger = "mkOption";
+ body = '''
+ mkOption {
+ type = $1;
+ default = $2;
+ description = $3;
+ example = $4;
+ }
+ ''';
+ }
+ ];
+ }
+''
+
+
+Declared by:
+
+
+<nvf/modules/plugins/snippets/luasnip/luasnip.nix>
+
+ |
vim.snippets.luasnip.customSnippets.snipmate.<name>.*.body
+
+
+The body of the snippet in SnipMate format (see LuaSnip Documentation).
+ +Type: +string
+ +Declared by:
+
+
+<nvf/modules/plugins/snippets/luasnip/luasnip.nix>
+
+ |
vim.snippets.luasnip.customSnippets.snipmate.<name>.*.description
+
+
+The description shown for this snippet.
+ +Type: +string
+ +Default:
+""
Declared by:
+
+
+<nvf/modules/plugins/snippets/luasnip/luasnip.nix>
+
+ |
vim.snippets.luasnip.customSnippets.snipmate.<name>.*.trigger
+
+
+The trigger used to activate this snippet.
+ +Type: +string
+Declared by: