Comments (4)
Would you describe followings? I could not understand what happened only from the description.
- Exact steps to reproduce your problem (sequence of inputs to Vim just after Vim opens)
- Your
BufEnter
configuration in your.vimrc
Does git-messenger depends on this autocmd?
Yes.
Actual sequence of this plugin is as follows:
- You run
:GitMessenger
command - git-messenger.vim executes Git commands like
git blame
- Opens popup window with float window
- Move the cursor into the popup window
- Set
BufEnter
autocmd to detect when the cursor moving outside the popup window
BTW, 'verbose' option would be useful to debug such a problem. Please see :help 'verbose'
.
$ nvim -V8
from git-messenger.vim.
I believe lewis6991/gitsigns.nvim#484 is an example of this issue.
from git-messenger.vim.
I think this problem is caused by using noautocmd
in autoload/gitmessenger/popup.vim, it ignores all events.
Lots of plugins depend on Buf*
events, so I think it's better to not ignore events.
@rhysd hi, do you have any solution to fix this problem? Thanks.
from git-messenger.vim.
git-messenger.mp4
I use git-messenger with APZelos/blamer.nvim. After calling GitMessenger
, blamer.nvim stop showing blame infomations. It's because blamer.nvim uses BufEnter/BufLeave events to decide whether to show blame info, but git-messenger use noautocmd wincmd p
to switch between current buffer and popup window, which ignores BufEnter/BufLeave events.
If I replace noautocmd wincmd p
to wincmd p
, this problem is fixed.
@rhysd Hi buddy, do you think this fix is correct ? Thanks.
from git-messenger.vim.
Related Issues (20)
- [Feature Request] View word-diff version of commit HOT 2
- Git on CentOS7 does not work because it does not support -C option HOT 5
- Does not detect symlinks HOT 4
- Inside .github directory is detected as inside .git directory
- Lines starting with '-' are highlighted as 'removed' in word diffs
- [Question] Missing tests for word-diff feature HOT 3
- Add highlight border color variable HOT 7
- [Idea] Open github pull request of commit HOT 3
- popup commit body sometimes shows CRLF ^M HOT 10
- View range log
- E21: Cannot make changes, 'modifiable' is off HOT 3
- Does not resolve symlink before searching for git root
- Doesn't work on worktrees HOT 2
- Autoclose on BufLeave should be only when entering into a normal buffer HOT 2
- Git popup in visual mode on "<"
- expose command to customise git diff
- vim support popup_create ?
- The bottom border is gone after I press r or d
- Highlight glitch if I press r followed by d
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 git-messenger.vim.