mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	Deploy PR #961 preview
This commit is contained in:
		
					parent
					
						
							
								d8fd1c7a27
							
						
					
				
			
			
				commit
				
					
						0139173b94
					
				
			
		
					 1 changed files with 115 additions and 0 deletions
				
			
		|  | @ -34945,6 +34945,121 @@ boolean</p> | |||
| <p><span class="emphasis"><em>Example:</em></span> | ||||
| <code class="literal">true</code></p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||
| <table border="0" summary="Simple list" class="simplelist"> | ||||
| <tr><td> | ||||
| <code class="filename"><a class="filename"  href="https://github.com/NotAShelf/nvf/blob/main/modules/plugins/snippets/luasnip/luasnip.nix" target="_top"> | ||||
| <nvf/modules/plugins/snippets/luasnip/luasnip.nix> | ||||
| </a></code> | ||||
| </td></tr> | ||||
| </table> | ||||
| </dd> | ||||
| <dt> | ||||
|  <span class="term"> | ||||
|  <a id="opt-vim.snippets.luasnip.customSnippets.snipmate"></a><a class="term" href="options.html#opt-vim.snippets.luasnip.customSnippets.snipmate"><code class="option">vim.snippets.luasnip.customSnippets.snipmate</code> | ||||
|   </a> | ||||
|  </span> | ||||
| </dt> | ||||
| <dd> | ||||
| <p>A list containing custom snippets in the SnipMate format to be loaded by LuaSnip.</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Type:</em></span> | ||||
| attribute set of list of (submodule)</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Default:</em></span> | ||||
| <code class="literal">{ }</code></p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting">'' | ||||
|   { | ||||
|     all = [ | ||||
|       { | ||||
|         trigger = "if"; | ||||
|         body = "if $1 else $2"; | ||||
|       } | ||||
|     ]; | ||||
|     nix = [ | ||||
|       { | ||||
|         trigger = "mkOption"; | ||||
|         body = ''' | ||||
|           mkOption { | ||||
|             type = $1; | ||||
|             default = $2; | ||||
|             description = $3; | ||||
|             example = $4; | ||||
|           } | ||||
|         '''; | ||||
|       } | ||||
|     ]; | ||||
|   } | ||||
| '' | ||||
| </code></pre> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||
| <table border="0" summary="Simple list" class="simplelist"> | ||||
| <tr><td> | ||||
| <code class="filename"><a class="filename"  href="https://github.com/NotAShelf/nvf/blob/main/modules/plugins/snippets/luasnip/luasnip.nix" target="_top"> | ||||
| <nvf/modules/plugins/snippets/luasnip/luasnip.nix> | ||||
| </a></code> | ||||
| </td></tr> | ||||
| </table> | ||||
| </dd> | ||||
| <dt> | ||||
|  <span class="term"> | ||||
|  <a id="opt-vim.snippets.luasnip.customSnippets.snipmate._name_._.body"></a><a class="term" href="options.html#opt-vim.snippets.luasnip.customSnippets.snipmate._name_._.body"><code class="option">vim.snippets.luasnip.customSnippets.snipmate.<name>.*.body</code> | ||||
|   </a> | ||||
|  </span> | ||||
| </dt> | ||||
| <dd> | ||||
| <p>The body of the snippet in SnipMate format (see <a class="link" href="https://github.com/L3MON4D3/LuaSnip#add-snippets"  target="_top">LuaSnip Documentation</a>).</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Type:</em></span> | ||||
| string</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||
| <table border="0" summary="Simple list" class="simplelist"> | ||||
| <tr><td> | ||||
| <code class="filename"><a class="filename"  href="https://github.com/NotAShelf/nvf/blob/main/modules/plugins/snippets/luasnip/luasnip.nix" target="_top"> | ||||
| <nvf/modules/plugins/snippets/luasnip/luasnip.nix> | ||||
| </a></code> | ||||
| </td></tr> | ||||
| </table> | ||||
| </dd> | ||||
| <dt> | ||||
|  <span class="term"> | ||||
|  <a id="opt-vim.snippets.luasnip.customSnippets.snipmate._name_._.description"></a><a class="term" href="options.html#opt-vim.snippets.luasnip.customSnippets.snipmate._name_._.description"><code class="option">vim.snippets.luasnip.customSnippets.snipmate.<name>.*.description</code> | ||||
|   </a> | ||||
|  </span> | ||||
| </dt> | ||||
| <dd> | ||||
| <p>The description shown for this snippet.</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Type:</em></span> | ||||
| string</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Default:</em></span> | ||||
| <code class="literal">""</code></p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||
| <table border="0" summary="Simple list" class="simplelist"> | ||||
| <tr><td> | ||||
| <code class="filename"><a class="filename"  href="https://github.com/NotAShelf/nvf/blob/main/modules/plugins/snippets/luasnip/luasnip.nix" target="_top"> | ||||
| <nvf/modules/plugins/snippets/luasnip/luasnip.nix> | ||||
| </a></code> | ||||
| </td></tr> | ||||
| </table> | ||||
| </dd> | ||||
| <dt> | ||||
|  <span class="term"> | ||||
|  <a id="opt-vim.snippets.luasnip.customSnippets.snipmate._name_._.trigger"></a><a class="term" href="options.html#opt-vim.snippets.luasnip.customSnippets.snipmate._name_._.trigger"><code class="option">vim.snippets.luasnip.customSnippets.snipmate.<name>.*.trigger</code> | ||||
|   </a> | ||||
|  </span> | ||||
| </dt> | ||||
| <dd> | ||||
| <p>The trigger used to activate this snippet.</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Type:</em></span> | ||||
| string</p> | ||||
| 
 | ||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||
| <table border="0" summary="Simple list" class="simplelist"> | ||||
| <tr><td> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub Actions
				GitHub Actions