airblade / vim-gitgutter

A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.
MIT License
8.35k stars 296 forks source link

Sign updates conflict with deoplete.nvim #719

Closed mroavi closed 4 years ago

mroavi commented 4 years ago

What is the latest commit SHA in your installed vim-gitgutter? c27bfab8c51e77419ee0c4a9c4e3ba359dbc2ad4

What vim/nvim version are you on? NVIM v0.5.0-577-g48ac77a14

The gitgutter signs are not being updated after enabling deoplete with:

let g:deoplete#enable_at_startup = 1

If, however, I switch focus to another tmux pane and back, then the signs get updated.

This problem does not occur if deoplete is not enabled. I have updatetime set to 100.

Here is a gif demonstrating the above:

git-gutter-bug

airblade commented 4 years ago

I tried to install deoplete but it requires Python 3, and then other Python stuff, and I don't particularly want to install any of that. So I wasn't able to reproduce the problem.

With deoplete enabled at startup, once you open nvim and modify something, but before you change to another tmux pane, what does :echo b:gitgutter produce?

mroavi commented 4 years ago
:echo b:gitgutter

{'hunks': [], 'path': 'nvim/.config/nvim/init.vim', 'summary': [0, 0, 0], 'tick': 2}

By the way, I verified that I have the same problem without starting tmux.

mroavi commented 4 years ago

Apparently it is a neovim bug: https://github.com/neovim/neovim/issues/12587

airblade commented 4 years ago

That's a relief (for me) – I didn't know what the problem was ;)

I'll close this because it's not a vim-gitgutter bug, but please feel free to comment if you find a way vim-gitgutter could work around it.

antoinemadec commented 4 years ago

@airblade , @mroavi , could you please try the following plugin and tell me if it fixed your issue? https://github.com/antoinemadec/FixCursorHold.nvim

airblade commented 4 years ago

@antoinemadec Thanks, but I wasn't able to reproduce the original issue (due to not being able to install deoplete in the time available).

mroavi commented 4 years ago

@airblade , @mroavi , could you please try the following plugin and tell me if it fixed your issue? https://github.com/antoinemadec/FixCursorHold.nvim

See: https://github.com/Shougo/deoplete.nvim/issues/1112#issuecomment-657723927