mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	Deploy PR #891 preview
This commit is contained in:
		
					parent
					
						
							
								13f1f75e44
							
						
					
				
			
			
				commit
				
					
						0f43058eab
					
				
			
		
					 1 changed files with 20 additions and 13 deletions
				
			
		|  | @ -10738,15 +10738,23 @@ attribute set</p> | ||||||
|  </span> |  </span> | ||||||
| </dt> | </dt> | ||||||
| <dd> | <dd> | ||||||
| <p>Table that will be passed to <code class="literal">conform.format()</code>. If this | <p>Table or function(luainline) that will be passed to <code class="literal">conform.format()</code>. If this | ||||||
| is set, Conform will run the formatter asynchronously after | is set, Conform will run the formatter asynchronously after save.</p> | ||||||
| save.</p> |  | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Type:</em></span> | <p><span class="emphasis"><em>Type:</em></span> | ||||||
| null or (attribute set)</p> | null or (attribute set) or (luaInline)</p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Default:</em></span></p><pre><code class="programlisting">{ | <p><span class="emphasis"><em>Default:</em></span></p><pre><code class="programlisting">{ | ||||||
|   lsp_format = "fallback"; |   _type = "lua-inline"; | ||||||
|  |   expr = '' | ||||||
|  |     function() | ||||||
|  |       if not vim.g.formatsave or vim.b.disableFormatSave then | ||||||
|  |         return | ||||||
|  |       else | ||||||
|  |         return {["lsp_format"] = "fallback"} | ||||||
|  |       end | ||||||
|  |     end | ||||||
|  |   ''; | ||||||
| } | } | ||||||
| </code></pre> | </code></pre> | ||||||
| 
 | 
 | ||||||
|  | @ -10766,17 +10774,16 @@ null or (attribute set)</p> | ||||||
|  </span> |  </span> | ||||||
| </dt> | </dt> | ||||||
| <dd> | <dd> | ||||||
| <p>Table that will be passed to <code class="literal">conform.format()</code>. If this | <p>Attribute set or Lua function that will be passed to | ||||||
| is set, Conform will run the formatter on save.</p> | <code class="literal">conform.format()</code>. If this is set, Conform will run the formatter | ||||||
|  | on save.</p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Type:</em></span> | <p><span class="emphasis"><em>Type:</em></span> | ||||||
| null or (attribute set)</p> | null or (attribute set) or (luaInline)</p> | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Default:</em></span></p><pre><code class="programlisting">{ | <p><span class="emphasis"><em>Default:</em></span> | ||||||
|   lsp_format = "fallback"; | enabled by default, and respects <code class="option">vim.lsp.formatOnSave</code> and | ||||||
|   timeout_ms = 500; | <code class="option">vim.lsp.mappings.toggleFormatSave</code></p> | ||||||
| } |  | ||||||
| </code></pre> |  | ||||||
| 
 | 
 | ||||||
| <p><span class="emphasis"><em>Declared by:</em></span></p> | <p><span class="emphasis"><em>Declared by:</em></span></p> | ||||||
| <table border="0" summary="Simple list" class="simplelist"> | <table border="0" summary="Simple list" class="simplelist"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GitHub Actions
				GitHub Actions