-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first result auto-selected, but it doesn't search for the text in that result until I move selection down and back up again #96
Comments
I am also troubled by this, let’s find a solution together. |
I am also troubled by this to long. |
Oh, I fix it.., by add an option to -- `/` cmdline setup.
cmp.setup.cmdline({ '/', '?' }, {
completion = { completeopt = 'menu,menuone,noselect' },
sources = {
{ name = 'buffer' },
},
})
-- `:` cmdline setup.
cmp.setup.cmdline(':', {
completion = { completeopt = 'menu,menuone,noselect' },
sources = cmp.config.sources(
{ { name = 'path' } },
{ { name = 'cmdline', option = { ignore_cmds = { 'Man', '!' } } } }
),
}) But I can't understand, I have added this option to cmp.setup({
completion = {
completeopt = 'menu,menuone,noinsert',
},
...
}) |
Using The default keybindings:
You can override the default key by adding an argument to
In this case, then you can use |
Here's an example, I search for 'comp', first result is 'compare' and is selected, I hit enter and it searches for 'comp'. To select and search 'compare' I need to hit
tab
+shift-tab
+enter
. Would be great if the first option wasn't selected until I tab to it (so I don't need to tab forwards and backwards to actually select it).CleanShot.2023-05-25.at.10.51.45.mp4
The text was updated successfully, but these errors were encountered: