add just formatter for helix and format Justfile
This commit is contained in:
		
							parent
							
								
									72ffafa5d9
								
							
						
					
					
						commit
						52019f52ee
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		
							
								
								
									
										6
									
								
								Justfile
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								Justfile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -5,11 +5,13 @@ default:
 | 
			
		|||
    @just --list
 | 
			
		||||
 | 
			
		||||
switch specialisation=DEFAULT_SPECIALISATION:
 | 
			
		||||
    nh os switch {{FLAKE_HOME}} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
 | 
			
		||||
    nh os switch {{ FLAKE_HOME }} {{ if specialisation == DEFAULT_SPECIALISATION { "-S" } else { "-s " + specialisation } }}
 | 
			
		||||
 | 
			
		||||
update:
 | 
			
		||||
    nix flake update | spacer
 | 
			
		||||
 | 
			
		||||
push host target:
 | 
			
		||||
    nixos-rebuild switch --flake {{FLAKE_HOME}}#{{host}} --target-host {{target}} | spacer
 | 
			
		||||
    nixos-rebuild switch --flake {{ FLAKE_HOME }}#{{ host }} --target-host {{ target }} | spacer
 | 
			
		||||
 | 
			
		||||
alias s := switch
 | 
			
		||||
alias u := update
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -48,6 +48,15 @@
 | 
			
		|||
            };
 | 
			
		||||
          };
 | 
			
		||||
          language = [
 | 
			
		||||
            {
 | 
			
		||||
              name = "just";
 | 
			
		||||
              formatter = {
 | 
			
		||||
                command = "just";
 | 
			
		||||
                args = [
 | 
			
		||||
                  "--dump"
 | 
			
		||||
                ];
 | 
			
		||||
              };
 | 
			
		||||
            }
 | 
			
		||||
            {
 | 
			
		||||
              name = "nix";
 | 
			
		||||
              formatter = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue