Questions tagged [popup-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
58 views

Sync cursors of popup window and current window

I'm trying to sync the cursors movement of a popup window, and the current window. call range(50) \ ->map({_, i -> string(i)}) \ ->popup_create(#{ \ line: 1, \ col: 1, ...
2
votes
1answer
20 views

Scrolling down in popup window not working as intended

I have the following code: let text = range(50)->map({_,i -> string(i)}) let winid = popup_create(text, { \ 'line': 1, \ 'col': 1, \ 'minwidth': 1, \ 'minheight': 1, \ '...
0
votes
1answer
25 views

How to display popup window on the left or right side

I looked into the :h popup.txt and unless i missed something, did not see any mention for setting a popup window on the left or right side. PS: I'm on Vim 8.2 (latest compiled as of now) Any example ...
3
votes
2answers
57 views

How to open folds in a pedit-preview popup window?

I'm displaying a file contents by using :pedit …the-file-path…, to then call popup_setoptions(…the-ID…,#{firstline:anumber}) in order to scroll the popup and highlight/show the desired part of the ...
0
votes
0answers
23 views

Auto-completion pop-up no clean up - how to debug

I'm trying to solve this issue for some time now. Quite often auto-suggestion pop-up leaves a text on the screen: even after being closed sometimes covering newer suggestion that was displayed after ...
0
votes
1answer
76 views

How to set cursor position in a popup buffer?

I'm tinkering with popups and trying to open one, select a line (namely set the cursor line by pressing mapped keys (Ctrln / Ctrlp)), then close it. The problem is that I cannot select a line, despite ...
1
vote
1answer
78 views

Popup border is ugly, how to replace it?

This is the default border, it looks ugly This is fzf preview window, how I can replace the popup border as fzf's ? Update: thank @ralf ! it works ! I replace it with... Rounded: ['─', '│', '─', '...
2
votes
1answer
50 views

Highlight group for signature help

I'm using Vim (v. 8.2) with YouCompleteMe as a code completion engine. I welcome the addition of signature help, but I'm not happy with the default colors: Does anyone know what highlight group is ...
0
votes
0answers
42 views

Unmap <c-n> / <c-p> in completion menu to use as previous / next snippet placeholder with Coc

My completion mappings scheme with coc is the following: <c-@> (ctrl-space): trigger the menu / use the selected item (or the first one) <c-j> and <c-k>: navigate the list (or also ...