Revert "fish/functions/gl: git: Manually set the file type to git when calling nvim"

This reverts commit a30eda8531.

Fixed upstream with https://github.com/neovim/neovim/pull/17517.
This commit is contained in:
Sanchayan Maity 2022-02-26 10:50:19 +05:30
parent 6fb0c62a4b
commit 7b84c0eb20
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ function gl --description 'Git browse commits'
fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \ fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \
--preview="$view_commit" \ --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" \ --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 -c 'setf git' -R" \ --bind "enter:execute:$view_commit_nvim | nvim -R -" \
--bind "ctrl-y:execute:$copy_commit_hash" \ --bind "ctrl-y:execute:$copy_commit_hash" \
--bind "ctrl-x:execute:$git_checkout" \ --bind "ctrl-x:execute:$git_checkout" \
--bind "ctrl-o:execute:$github_open" \ --bind "ctrl-o:execute:$github_open" \

View file

@ -4,7 +4,7 @@
login = sanchayanmaity login = sanchayanmaity
[core] [core]
editor = nvim editor = nvim
pager = nvim -R -c 'setf git' pager = nvim -R
excludesfile = ~/.config/git/ignore excludesfile = ~/.config/git/ignore
[color] [color]
ui = true ui = true