Sangria
Sangria

Reputation: 163

How to change neovim command-line popup to horizontal, or change direction key's behaviour?

In neovim, popup of command-mode complete is vertical, but using left right to selete.

Can I change popup to horizontal? or use up down to select? How?


enter image description here

enter image description here

Upvotes: 2

Views: 1370

Answers (2)

Sangria
Sangria

Reputation: 163

Found a way to use <down> and <up> mappings for wildoptions=pum from https://github.com/neovim/neovim/issues/9953

if &wildoptions =~# "pum"
  cnoremap <expr> <up> pumvisible() ? '<left>' : '<up>'
  cnoremap <expr> <down> pumvisible() ? '<right>' : '<down>'
endif

Upvotes: 0

Coder_H
Coder_H

Reputation: 322

See :h 'wildoptions'

For the desired behaviour type :set wildoptions= in neovim.

Upvotes: 4

Related Questions