helix: add grammar check
This commit is contained in:
		
							parent
							
								
									9398c7568e
								
							
						
					
					
						commit
						e5143c2000
					
				
					 1 changed files with 28 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,12 @@
 | 
			
		|||
      };
 | 
			
		||||
 | 
			
		||||
    homeManager.cholli =
 | 
			
		||||
      { inputs, pkgs, ... }:
 | 
			
		||||
      {
 | 
			
		||||
        inputs,
 | 
			
		||||
        lib,
 | 
			
		||||
        pkgs,
 | 
			
		||||
        ...
 | 
			
		||||
      }:
 | 
			
		||||
      let
 | 
			
		||||
        helix-pkg = inputs.helix.packages.${pkgs.system}.default;
 | 
			
		||||
      in
 | 
			
		||||
| 
						 | 
				
			
			@ -107,14 +112,25 @@
 | 
			
		|||
                language-servers = [
 | 
			
		||||
                  "nixd"
 | 
			
		||||
                  "nil"
 | 
			
		||||
                  "harper-ls"
 | 
			
		||||
                ];
 | 
			
		||||
              }
 | 
			
		||||
              {
 | 
			
		||||
                # provided by the dev environment in the rust shell
 | 
			
		||||
                # Provided by the dev environment in the rust shell
 | 
			
		||||
                name = "rust";
 | 
			
		||||
                auto-format = true;
 | 
			
		||||
                formatter.command = "cargo fmt";
 | 
			
		||||
                language-servers = [ "rust-analyzer" ];
 | 
			
		||||
                language-servers = [
 | 
			
		||||
                  "rust-analyzer"
 | 
			
		||||
                  "harper-ls"
 | 
			
		||||
                ];
 | 
			
		||||
              }
 | 
			
		||||
              {
 | 
			
		||||
                name = "zig";
 | 
			
		||||
                language-servers = [
 | 
			
		||||
                  "zls"
 | 
			
		||||
                  "harper-ls"
 | 
			
		||||
                ];
 | 
			
		||||
              }
 | 
			
		||||
            ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -146,6 +162,15 @@
 | 
			
		|||
                args = [ "--stdio" ];
 | 
			
		||||
                config.provideFormatter = true;
 | 
			
		||||
              };
 | 
			
		||||
              harper-ls = {
 | 
			
		||||
                command = "${lib.getExe pkgs.harper}";
 | 
			
		||||
                args = [ "--stdio" ];
 | 
			
		||||
                config = {
 | 
			
		||||
                  linters = {
 | 
			
		||||
                    long_sentences = false;
 | 
			
		||||
                  };
 | 
			
		||||
                };
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
          };
 | 
			
		||||
        };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue