Replies: 1 comment 1 reply
-
Does this work for you? inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's what I want: If a completion list popup is not being displayed, then I want the
<Tab>
key to insert indentation characters, be they spaces or a literal TAB character.However, if a completion list popup is being displayed, then I want
<Tab>/<S-Tab>
to cycle forwards/backwards through the available items.After reviewing the pertinent docs, I'm unable to figure out how to accomplish what I want. I'm finding it increasingly frustrating to press
<Tab>
after entering a keyword/variable/function name expecting to advance the cursor, only to have the completion popup reappear. I've tried settingsuggest.autoTrigger
totrigger
, but that doesn't seem to have helped.My thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions