diff --git a/fish/.config/fish/functions/gl.fish b/fish/.config/fish/functions/gl.fish index 6ca8245..b7e1548 100644 --- a/fish/.config/fish/functions/gl.fish +++ b/fish/.config/fish/functions/gl.fish @@ -12,7 +12,7 @@ function gl --description 'Git browse commits' git log --color=always --format='%C(auto)%h%d %s %C(green)%C(bold)%cr% C(blue)%an' $argv | fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \ --preview="$view_commit" \ --header="ENTER to view, CTRL-Y to copy hash, CTRL-O to open on GitHub, CTRL-X to checkout, CTRL-C to exit, CTRL-S to cherry-pick" \ - --bind "enter:execute:$view_commit_nvim | nvim -R -" \ + --bind "enter:execute:$view_commit_nvim | nvim -R -c 'setf git'" \ --bind "ctrl-y:execute:$copy_commit_hash" \ --bind "ctrl-x:execute:$git_checkout" \ --bind "ctrl-o:execute:$github_open" \ diff --git a/git/.gitconfig b/git/.gitconfig index 8c3a206..045f575 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -3,7 +3,7 @@ email = sanchayan@sanchayanmaity.net login = sanchayanmaity [core] - editor = nvim + editor = nvim -c 'setf git' excludesfile = ~/.config/git/ignore [color] ui = true