From 460346ba2be10b276b7d4a17224fdf83b2edd457 Mon Sep 17 00:00:00 2001 From: mat ess Date: Mon, 27 Jun 2022 14:50:03 -0400 Subject: [PATCH] Set default editor --- home/neovim.nix | 4 ++++ home/shells.nix | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home/neovim.nix b/home/neovim.nix index c333b41..a438903 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -28,6 +28,10 @@ in # Config and plugins ------------------------------------------------------------------------- {{{ + home.sessionVariables = { + EDITOR = "nvim"; + }; + # TODO: migrate to lua config # Minimal init.vim config to load Lua config. Nix and Home Manager don't currently support # `init.lua`. diff --git a/home/shells.nix b/home/shells.nix index 4d1121f..1d0d148 100644 --- a/home/shells.nix +++ b/home/shells.nix @@ -131,8 +131,8 @@ # OG # Nix related - drb = "darwin-rebuild build --flake ${nixConfigDir}/"; - drs = "darwin-rebuild switch --flake ${nixConfigDir}/"; + drb = "darwin-rebuild build --flake ${nixConfigDir}/; and rm result"; + drs = "darwin-rebuild switch --flake ${nixConfigDir}/; and rm result"; drc = "codium ${nixConfigDir}"; drv = "vim ${nixConfigDir}"; cdr = "cd ${nixConfigDir}"; @@ -155,6 +155,7 @@ ls = "${exa}/bin/exa"; ps = "${procs}/bin/procs"; tb = "toggle-background"; + sb = "set-background-to-macOS"; }; # Configuration that should be above `loginShellInit` and `interactiveShellInit`.