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
 | 
					    @just --list
 | 
				
			||||||
 | 
					
 | 
				
			||||||
switch specialisation=DEFAULT_SPECIALISATION:
 | 
					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:
 | 
					update:
 | 
				
			||||||
    nix flake update | spacer
 | 
					    nix flake update | spacer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
push host target:
 | 
					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 s := switch
 | 
				
			||||||
alias u := update
 | 
					alias u := update
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,6 +48,15 @@
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
          };
 | 
					          };
 | 
				
			||||||
          language = [
 | 
					          language = [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					              name = "just";
 | 
				
			||||||
 | 
					              formatter = {
 | 
				
			||||||
 | 
					                command = "just";
 | 
				
			||||||
 | 
					                args = [
 | 
				
			||||||
 | 
					                  "--dump"
 | 
				
			||||||
 | 
					                ];
 | 
				
			||||||
 | 
					              };
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
              name = "nix";
 | 
					              name = "nix";
 | 
				
			||||||
              formatter = {
 | 
					              formatter = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue