Skip to content
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

How to jump to multiple items #654

Open
liketoeatcheese opened this issue Aug 8, 2024 · 0 comments
Open

How to jump to multiple items #654

liketoeatcheese opened this issue Aug 8, 2024 · 0 comments

Comments

@liketoeatcheese
Copy link

Hey mate, I have read through the docs and tried out different variance but couldn't make it work

Desire action

Remap <C-u> to jump down 4 times when there are matches
Remap <C-i> to jump up 4 times when there are matches

Documentation section

Under KEYBIND.md
<tab> -> if completion menu is open: select next item

Attempts

Here's what I have tried. I have tried different key maps other than <C-u> and <C-i> but no luck

    vim.api.nvim_set_keymap("i", "<C-u>", [[pumvisible() ? "\<C-n>\<C-n>\<C-n>\<C-n>" : "\<Tab>"]], { expr = true, silent = true })
    vim.api.nvim_set_keymap("i", "<C-i>", [[pumvisible() ? "\<C-p>\<C-p>\<C-p>\<C-p>" : "\<BS>"]], { expr = true, silent = true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant