fish: git: Setup default editor to be neovim

Sets default editor for things such as git commits and diffs

Signed-off-by: Nicholas Mello <nick@nmello.dev>
This commit is contained in:
2025-08-14 22:45:30 -05:00
parent b049dec292
commit 2c5831ef70
3 changed files with 6 additions and 1 deletions

View File

@@ -2,4 +2,7 @@ if status is-interactive
if type -q fzf
fzf --fish | source
end
set -Ux EDITOR nvim
set -Ux VISUAL nvim
end

View File

@@ -1,5 +1,7 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR --export EDITOR:nvim
SETUVAR --export VISUAL:nvim
SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:brblack
SETUVAR fish_color_cancel:\x2dr

View File

@@ -6,6 +6,6 @@
template = /home/nicholasmello/.gitmessage
gpgsign = true
[merge]
tool = vimdiff
tool = nvimdiff
[gpg]
program = gpg