Comments (9)
I've been getting this too. One way around the problem is to deactivate vim-gutter for BufEnter
. You can do this by adding let g:gitgutter_on_bufenter = 0
to your vimrc.
But I agree that the core problem is probably iterating over buffers which are no longer current. Right now I look for listed buffers but I'm not certain that's optimal. Do you have any suggestions?
from vim-gitgutter.
Another problem, if you have vim-gitgutter bound to BufEnter
(the default), is that loading a file will trigger both the BufReadPost
and the BufEnter
autocommands, both of which call GitGutter
on the file. So it's doing twice as much work as necessary.
from vim-gitgutter.
I've just made a change (7f1c104) which improves the situation. Please could you try it and let me know if you still have problems?
from vim-gitgutter.
Hm, after the recent update, I'm actually not seeing a gutter at all! I've reverted to a previous version and the gutter works again. I don't see any errors… is there a log or something I can look at so I can be more helpful? :)
from vim-gitgutter.
Oops, my last change stopped vim-gitgutter from updating the signs when one wrote the buffer. Sorry about that.
I've fixed it in fd7fb6c – does this get it working for you again?
from vim-gitgutter.
I've sped up FocusGained
in 2a5ae17, assuming you have vim-gitgutter set to updated on BufEnter
(the default). It now works along the lines of your original suggestion.
from vim-gitgutter.
I'm closing this now because the original issue is fixed. Please open a new one if you're still not getting any signs at all.
Thanks!
from vim-gitgutter.
Hey Andy, latest update works for me and has a noticeable improvement in performance. Thank you very much!
from vim-gitgutter.
Hey Matt, thanks for letting me know!
from vim-gitgutter.
Related Issues (20)
- vim-gitgutter clobbers v:shell_error via autocmd ShellCmdPost HOT 7
- File renames aren't handled properly HOT 13
- Error detected while processing CursorHold HOT 14
- g:gitgutter_diff_base () is invalid HOT 4
- Neovim Nightly Issue HOT 2
- Neovim now prefers extmarks to signs HOT 3
- errors when file path includes colons HOT 3
- Performance issues after base_path fix HOT 5
- Branch rename breaking installations? HOT 2
- g:gitgutter_diff_base () is invalid HOT 10
- Performance issues with big files in the repository HOT 3
- cursorline highlighting doesn't work with gitgutter HOT 3
- gutter colors not showing change on correct line HOT 1
- No hunks (file possibly recognized as binary file) HOT 5
- GitGutterLineHighlightsToggle doesn't update immediately on neovim HOT 3
- GG doesn't show file changes when in a worktree HOT 3
- key map expr needs more backslashes? HOT 1
- GitGutterPreviewHunk error HOT 1
- files are not tracked (no hunk in file) HOT 31
- feature request: GitGutterNextStagedHunk HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-gitgutter.