Hello, because of a bug of ultisnips, their snippet run into random behavior when triggered when popup menu is visible. But unfortunately the bug has little hope to be resolved.
So I'm seeking a way to prevent popup menu to appear in particular context.
I have a function, namely vimtex#syntax#in_mathzone() provided by vimtex to detect whether the cursor position is in the math context. What I want to is do not show suggest when the function return true, just like if coc_suggest_disable is set to true.
If no direct way to do this, some hacking on source code is also good for me. Thanks for any help!
Hello, because of a bug of ultisnips, their snippet run into random behavior when triggered when popup menu is visible. But unfortunately the bug has little hope to be resolved. So I'm seeking a way to prevent popup menu to appear in particular context. I have a function, namely
vimtex#syntax#in_mathzone()
provided by vimtex to detect whether the cursor position is in the math context. What I want to is do not show suggest when the function returntrue
, just like ifcoc_suggest_disable
is set to true. If no direct way to do this, some hacking on source code is also good for me. Thanks for any help!