Christina Sørensen 2 лет назад
Родитель
Сommit
985c711e6d
4 измененных файлов с 4 добавлено и 2 удалено
  1. 1 0
      .envrc
  2. 1 0
      .gitignore
  3. 1 1
      flake.nix
  4. 1 1
      src/main.rs

+ 1 - 0
.envrc

@@ -0,0 +1 @@
+use flake .

+ 1 - 0
.gitignore

@@ -22,3 +22,4 @@ parts
 prime
 stage
 *.snap
+.direnv

+ 1 - 1
flake.nix

@@ -69,7 +69,7 @@
 
         # For `nix develop`:
         devShells.default = pkgs.mkShell {
-          nativeBuildInputs = with pkgs; [toolchain];
+          nativeBuildInputs = with pkgs; [toolchain just pandoc];
         };
 
         # for `nix flake check`

+ 1 - 1
src/main.rs

@@ -75,7 +75,7 @@ fn main() {
             let writer = io::stdout();
 
             let console_width = options.view.width.actual_terminal_width();
-            let theme = options.theme.to_theme(console_width.is_some());
+            let theme = options.theme.to_theme(terminal_size::terminal_size().is_some());
             let exa = Exa { options, writer, input_paths, theme, console_width, git };
 
             match exa.run() {