Set nvim as default editor across all configurations

- Add EDITOR and VISUAL environment variables to fish shell init
- Add system-level EDITOR and VISUAL variables for macOS and WSL
- Ensures nvim is used as default editor for git, system tools, and applications
- Maintains existing neovim defaultEditor configuration
This commit is contained in:
DannyDannyDanny 2025-09-13 17:37:34 +02:00
parent 922a68ea47
commit a16fcb9f51
3 changed files with 8 additions and 0 deletions

View file

@ -59,6 +59,10 @@
if test -d /opt/homebrew/bin
fish_add_path -g /opt/homebrew/bin /opt/homebrew/sbin
end
# Set default editor
set -gx EDITOR nvim
set -gx VISUAL nvim
'';
};

View file

@ -46,6 +46,8 @@
# Environment
environment.variables = {
DBT_USER = "DNTH";
EDITOR = "nvim";
VISUAL = "nvim";
};
environment.systemPackages = with pkgs; [

View file

@ -49,6 +49,8 @@
nixpkgs.config.allowUnfree = true;
environment.variables = {
DBT_USER = "DNTH";
EDITOR = "nvim";
VISUAL = "nvim";
};
environment.systemPackages = with pkgs; [