lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
689 stars 27 forks source link

Cannot toggle modified if [color "status"] is set in .gitconfig #175

Open LkeMitchll opened 6 years ago

LkeMitchll commented 6 years ago

I cannot toggle files in the full version of :Gina status when [color "status"] is set in ~/.gitconfig. But it works fine for :Gina status -s. This only occurs in Modified files also If I try to toggle a new file it works fine in either mode.

I have to remove the entire [color "status"] section for it to work correctly. I suspect that adding colours adds characters to format the text.

.gitconfig

[alias]
  ch = checkout
  co = commit
  ca = commit --all
  caa = commit --all --amend
  sh = push
  sho = push origin
  ll = pull --rebase
  a = add
  aa = add --all
  s = status -sbu
  f = fetch
  fo = fetch origin
  d = diff
  ri = rebase --interactive
  rc = rebase --continue
  lg = log --graph --date=relative -10
  shom = push origin master
  reset-last-soft = reset --soft HEAD~1
  reset-last-hard = reset --hard HEAD~1
[core]
  excludesfile = ~/.config/git/gitignore
  autocrlf = input
  editor=nvim
  whitespace = space-before-tab,tab-in-indent,trailing-space
  pager = diff-so-fancy | less --tabs=4 -RFX
[color]
  ui = auto
[color "status"]
  header = cyan
  branch = white
  changed = yellow
  added = green
  untracked = cyan
[format]
  pretty = %Cred%h%Creset %aN -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset
[difftool]
  prompt = true
[merge]
  tool = nvimdiff
  conflictstyle = diff3
  ff = only
[diff]
  tool = vimdiff
  algorithm = histogram
[mergetool "nvimdiff"]
  prompt = false
  keepBackup = false
  cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[filter "media"]
  clean = git-media-clean %f
  smudge = git-media-smudge %f
[apply]
  whitespace = fix
[push]
  default = current
[branch]
  autosetuprebase = always
[commit]
  template = ~/.config/git/gitmessage
[fetch]
  prune = true
[rebase]
  autosquash = true

Thanks!

lambdalisue commented 6 years ago

I didn't know the [color "status"] section thanks. I need to think the way to fix the issue.