Open Aster89 opened 1 year ago
As an unrelated question, would you point me at the part of your code that makes it possible to have syntax highlight equal to the one used by the current buffer also in the off-screen popup?
With syntax_hl: 1 the code should be here: https://github.com/andymass/vim-matchup/blob/09576fd767cc55ca934a95f9bdcf91aa12c32cd0/autoload/matchup/matchparen.vim#L705
You can see this code uses the function originally meant to build the status line string, and converts the highlight group to text properties for the popup. The reason it is done this way is at one time (and perhaps still) it was not possible to display an existing buffer in a popup window. Maybe we can check whether this can be rewritten now. On the other hand, I think this would make relativenumber impossible. There is also a feature where long function declarations will be shortened (like int func(int x... {
), which will not work with buffer popup.
This code also suggests what the problem might be- clearly we are constructing a string which is too large for the present popup.
Explain the issue
Most issues are related to bugs or problems. In these cases, you should include a minimal working example and a minimal vimrc file (see below), as well as:
If your issue is instead a feature request or anything else, please consider if minimal examples and vimrc files might still be relevant.
Minimal working example
Please provide a minimal working example, e.g.,
In the demo I used this, but you can use anything else fits
Minimal vimrc file
Please provide a minimal vimrc file that reproduces the issue. The following should often suffice: