Questions tagged [popup-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

Help in positioning a popup menu in the screen

I am using MacVim and I wish a popup menu to always appear in the lower right corner of the screen (not the current window). I am using the following command: popup_create(items, { title: " ...
Barzi2001's user avatar
  • 481
0 votes
0 answers
30 views

Popup to show number of matches of a given string while in insert mode, and while completion popup is being shown

This is a follow up to a previous question. Thanks to that, I could come up with this augroup: augroup Foo autocmd! autocmd TextChangedI,TextChangedP * call <SID>foo() fun s:foo() let ...
Enlico's user avatar
  • 2,172
0 votes
0 answers
52 views

How to limit number of Vim-LSP suggestions from Vim-LSP itself

Even though Vim has its pum stuff, more specifically pumheight for this problem, I would expect Vim-LSP (prabirshrestha/vim-lsp) to have something similar for itself as well, after all a language ...
Philippe Fanaro's user avatar
0 votes
1 answer
62 views

Can a popup_menu's callback access its popup_menu's first argument?

For now I have the feeling the answer is no, but I'm asking to make sure that's the case, and to know if people has found workarounds or can suggest good approaches. From :help popup_menu I've found ...
Enlico's user avatar
  • 2,172
0 votes
1 answer
33 views

How to map <C-z> to act like <C-y> in completion menu?

My keyboard has z and y switched compared to US keyboards, which makes pressing C-y for completions pretty awkward. I tried adding imap <expr> <C-z> pumvisible() ? "<C-y>" :...
fbence's user avatar
  • 603
0 votes
1 answer
404 views

Disable coc diagnostic popups

How do I disable coc diagnostic popups (such as unused variable)? I have suggestions disabled with "suggest.autoTrigger": "none" but I'm struggling to figure out how to disable on-...
Aaron Parisi's user avatar
0 votes
0 answers
62 views

forced inserted ^Z in coc

I'm using the plugin coc for autocompletion. My problem is that when coc opens the pop up menu with the completion items and I continue typing then a ^Z character is inserted in the buffer as shown in ...
JangLuna's user avatar
-1 votes
1 answer
62 views

how to disable the new popup file-picker on :w

If I try to write a file under a new name, instead of being able to edit an existing name provided by file-completion, I get a pop-up that only lets me select an existing one. I saw a description of ...
n952162's user avatar
0 votes
1 answer
221 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 ...
d9ngle's user avatar
  • 163
0 votes
1 answer
694 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 ...
Enlico's user avatar
  • 2,172
0 votes
1 answer
170 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 ...
mmm111mmm's user avatar
  • 137
1 vote
0 answers
81 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 ...
libby's user avatar
  • 111
1 vote
0 answers
95 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 ...
interfect's user avatar
  • 163
1 vote
0 answers
290 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 ...
Prismavoid's user avatar
1 vote
0 answers
567 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 ...
Enlico's user avatar
  • 2,172
1 vote
1 answer
707 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 ...
Samselvaprabu's user avatar
1 vote
1 answer
236 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?
Samselvaprabu's user avatar
3 votes
1 answer
521 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 ...
digital_revenant's user avatar
0 votes
0 answers
64 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 ...
Terry's user avatar
  • 61
1 vote
2 answers
231 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, ...
Nordine Lotfi's user avatar
2 votes
1 answer
282 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, \ '...
Nordine Lotfi's user avatar
0 votes
1 answer
494 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 ...
Nordine Lotfi's user avatar
4 votes
2 answers
296 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 ...
Mooncer's user avatar
  • 173
0 votes
0 answers
146 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 ...
Mishaszu's user avatar
1 vote
1 answer
992 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 ...
d.k's user avatar
  • 638
1 vote
1 answer
3k views

Popup border is ugly, how can I make it look nice?

This is the default border, it looks ugly This is the FZF preview window. It looks pretty nice. How can I make Vim's popups look rounded like FZF's window? Update: thanks @ralf ! it works ! I ...
Zheng Kai's user avatar
  • 113
2 votes
1 answer
479 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 ...
Lorah Attkins's user avatar
1 vote
1 answer
924 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 ...
Biggybi's user avatar
  • 2,699
38 votes
1 answer
13k 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 ...
B Layer's user avatar
  • 19.5k