Git Product home page Git Product logo

Comments (4)

rhysd avatar rhysd commented on May 30, 2024

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.

execute 'autocmd BufEnter,WinEnter * call <SID>on_buf_enter(' . opener_bufnr . ')'

Actual sequence of this plugin is as follows:

  1. You run :GitMessenger command
  2. git-messenger.vim executes Git commands like git blame
  3. Opens popup window with float window
  4. Move the cursor into the popup window
  5. 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.

ambroisie avatar ambroisie commented on May 30, 2024

I believe lewis6991/gitsigns.nvim#484 is an example of this issue.

from git-messenger.vim.

Alex-duzhichao avatar Alex-duzhichao commented on May 30, 2024

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.

Alex-duzhichao avatar Alex-duzhichao commented on May 30, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.