Questions tagged [popup-menu]
The popup-menu tag has no usage guidance.
17
questions
0
votes
0answers
13 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
25 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 ...
0
votes
0answers
23 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
0answers
20 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
60 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
1answer
41 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?
0
votes
1answer
16 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 ...
0
votes
0answers
24 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 ...
1
vote
2answers
85 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
64 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
57 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
85 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
32 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
159 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
226 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
104 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 ...
1
vote
1answer
110 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 ...