Automatically select first entry in insert mode but don't select first entry in command mode #1708
Answered
by
fitrh
ryanmsnyder
asked this question in
Q&A
-
I have this config: completion = {
completeopt = "menu,menuone,noselect",
},
|
Beta Was this translation helpful? Give feedback.
Answered by
fitrh
Sep 19, 2023
Replies: 1 comment
-
Set different local cmp = require('cmp')
cmp.setup({
completion = {
completeopt = 'menu,menuone',
},
})
-- you can replace `:` with table for multiple mode, e.g. { ':', '/', '?' }
-- which will affect both ex-mode and search mode command
cmp.setup.cmdline(':', {
completion = {
completeopt = 'menu,menuone,noselect',
},
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ryanmsnyder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set different
completion.completeopt
for global setup and cmdline setup