mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 04:32:21 +00:00 
			
		
		
		
	fix(formatter/conform-nvim): allow disabling format on/after save
This commit is contained in:
		
					parent
					
						
							
								05489d95b6
							
						
					
				
			
			
				commit
				
					
						88d5a499d0
					
				
			
		
					 2 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
  ...
 | 
			
		||||
}: let
 | 
			
		||||
  inherit (lib.options) mkOption mkEnableOption literalExpression;
 | 
			
		||||
  inherit (lib.types) attrs enum;
 | 
			
		||||
  inherit (lib.types) attrs enum nullOr;
 | 
			
		||||
  inherit (lib.nvim.types) mkPluginSetupOption;
 | 
			
		||||
  inherit (lib.nvim.lua) mkLuaInline;
 | 
			
		||||
in {
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ in {
 | 
			
		|||
      };
 | 
			
		||||
 | 
			
		||||
      format_on_save = mkOption {
 | 
			
		||||
        type = attrs;
 | 
			
		||||
        type = nullOr attrs;
 | 
			
		||||
        default = {
 | 
			
		||||
          lsp_format = "fallback";
 | 
			
		||||
          timeout_ms = 500;
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@ in {
 | 
			
		|||
      };
 | 
			
		||||
 | 
			
		||||
      format_after_save = mkOption {
 | 
			
		||||
        type = attrs;
 | 
			
		||||
        type = nullOr attrs;
 | 
			
		||||
        default = {lsp_format = "fallback";};
 | 
			
		||||
        description = ''
 | 
			
		||||
          Table that will be passed to `conform.format()`. If this
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue