Skip to content

How to stop lualine from flickering when selecting options in the coc menu? #5154

Closed Answered by hexh250786313
skamsie asked this question in Q&A
Discussion options

You must be logged in to vote

@skamsie

It might be that I didn't explain it clearly enough before. What I mean is that whether it's the default keymap of coc or your custom keymap, as long as it uses the coc#pum#prev and coc#pum#next keymaps, this issue will occur.

coc.nvim/plugin/coc.vim

Lines 710 to 715 in 3b8869a

if empty(mapcheck('<C-n>', 'i'))
inoremap <silent><expr> <C-n> coc#pum#visible() ? coc#pum#next(1) : "\<C-n>"
endif
if empty(mapcheck('<C-p>', 'i'))
inoremap <silent><expr> <C-p> coc#pum#visible() ? coc#pum#prev(1) : "\<C-p>"
endif

You can see in the coc source code that these two keymaps are bound by default. So, as I mentioned above, you can set a keymap to over…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@skamsie
Comment options

@hexh250786313
Comment options

Answer selected by skamsie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants