Questions tagged [popup-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
32
votes
1answer
7k views

What are the new "popup windows" in Vim 8.2?

The latest version of Vim, 8.2, has a new feature called "popups" or "popup windows". They sound interesting but I'm not quite sure what they're good for. Can you enlighten me...preferably with some ...
0
votes
1answer
35 views

Signature popup has unreadable colors in YCM for Rust

I'm using Vim 8.2 with rust highlighter and YCM plugin for auto-completion and signature help. Everything works except method signature: It has same color for both color text and bg in parts like ...
0
votes
1answer
45 views

Insert mode's CTRL-E and CTRL-Y vs popup menu

I was wandering that sometimes I'd like CTRL-E and CTRL-Y to work even while I'm in insert mode. Before setting up any mapping I thought I should see if I'm shadowing some important functionality, so ...
0
votes
1answer
38 views

Popup menu: Set a selected item on creation

I have a popup_menu. I want to have the second, for example, option chosen when it opens, rather than the first. Is this possible? I've looked in various threads on the internet and :help popup and ...
0
votes
0answers
19 views

Show popup menu of files which call a specific function vim

In normal mode, I'll hover over a function declaration and I want to open a file which calls this function. How can I open up the popup menu in normal mode and have it just open the file I select ...
1
vote
0answers
38 views

How can I overlap windows, use non-rectangular windows, or dock a window in the corner?

I'm working on a text file (my notes/todo document), and I want to have the to-do list part of the document open in one Vim window (to check things off), with another to look at the rest of the ...
1
vote
1answer
276 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 ...
0
votes
0answers
95 views

How to display additional info for a completion option in second popup menu

The coc.nvim plugin has a really cool feature where the completion, or at least the python completion, will have additional information about the option in a second popup menu. I have looked through a ...
1
vote
1answer
93 views

Display file contents in a popup window upon pressing a key?

I am having a text file where I have a cheat sheet of commands I learned. When pressing some key ,it should be displayed in popup window. In Kakoune editor they display a help using Alt+i , like that ...
1
vote
0answers
95 views

How to fix/customise coloring for the autocompletion popup menu?

I'm not really happy with the syntax coloring of the auto-completion menu. Probably the pink-ish background color is the least unpleasant thing, but the grey foreground text is really not as readable ...
1
vote
1answer
52 views

How to gF (go to file Particular line) to popup window?

In vim8 there is a popup window feature which seems like vscode peek definition. Often I use gF to go to file with particular line number. Is there a way to open a file in popup window?
1
vote
1answer
60 views

Disabling hint popup

Whenever my cursor is over a function for a few seconds, this hint for the function pops up. Doesn't go away by hitting Esc and I need to move my cursor to get rid of it. No other plugins except ...
1
vote
2answers
115 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, ...
0
votes
0answers
32 views

How to store entries of complete menu and omnicomplete menu in variables without triggering the popup menu?

Is there a way to store the results of <C-N> or <C-X><C-O> from the insert mode in a string or list variable without triggering the respective popup menus to display onscreen? For ...
2
votes
1answer
146 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
160 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 ...
4
votes
2answers
127 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 ...
1
vote
1answer
372 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 ...
0
votes
0answers
55 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 ...
1
vote
1answer
836 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
219 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 ...