When using Ale, I'd like to use the Tab key to cycle through completion suggestions. By default, the arrow keys do it. What are the various configuration options for cycling through the suggestions as well as selecting the correct completion?
1 Answer
Could do something like this:
inoremap <silent><expr> <Tab>
\ pumvisible() ? "\<C-n>" : "\<TAB>"
Essentially, when you hit tab in insert mode, check whether the popup is visible, and if it is then send Ctrl-n
(to go to the next match), otherwise send a tab.
-
6Thanks. I also added
inoremap <silent><expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-TAB>"
to make Shift-Tab select the previous suggestion. Nov 11, 2018 at 11:36