No autocmd when opening QuickFix window#1860
No autocmd when opening QuickFix window#1860andryandrew wants to merge 1 commit intolervag:masterfrom andryandrew:patch-1
Conversation
Disables firing of autocommands when opening the QuickFix window
|
I'm curious if this would prevent running "important" or "desired" autocmds. E.g., I personally have augroup quickfix_autocmds
autocmd!
autocmd BufReadPost quickfix call personal#qf#adjust_height()
augroup ENDwhere |
|
My simple test for this confirms my suspicion. Thus, I would prefer to not merge this and instead implement a different fix, if possible. |
|
Oups, sorry 😅 I did not think this through enough. ...but maybe it's better to go with a "redraw" just before the Just a question though: why is the built-in |
No problem! And if possible it seems like a good idea to ignore specific autocommands! I think the main autocommands that are relevant that we don't want to ignore are ones such as the one in my example.
That also sounds like a simple and OK solution. It should be added with a relevant comment (e.g. linking to this PR for motivation).
Good question. I guess the simple answer is "because Vimtex tries not to interfere with other plugins"? Is there a simple way to disable it that would not lead to unexpected situations for the user (e.g. a user may expected matchparen to be active in some buffers, but not the LaTeX buffers)? |
|
Feel free to reopen if you have a proposal for an updated version. |
|
I can submit a PR with the |
Great, thanks, that would be appreciated!
I have no idea. I can't reopen it either. So I guess you should just open a new PR. If/When you do, please link back to this PR and to the original issue, #1595 to help maintain the context. |
Disables firing of autocommands when opening the QuickFix window.
Fixes #1595. While the bug is ultimately
neovim's, firing aCursorMovedmore often than invimis aneovimdesign choice.