Skip to content

select_next until the next source #1890

@mikavilpas

Description

@mikavilpas

Feature Description

Sometimes I have many suggestions based on the current query. Here is an example (lua/blink/cmp/health.lua) that shows three buffer completions and the rest from https://github.com/mikavilpas/blink-ripgrep.nvim
Image

I was looking around to see if there is a command like select_next but that would select the next completion that is from a different source than the current item
https://cmp.saghen.dev/configuration/keymap.html#commands. In the picture, it would mean the first ripgrep ((rg)) result.

I like to organize my completion results based on source by using large score_offset values like sources.providers.snippets.score_offset = -100. The list of results might be very long (tens or hundreds of items from e.g. LSPs), and scrolling to the next source would be really useful for me.

I could maybe open a PR for this if you think it might be a good fit. Alternatively I could add it my own config if there's a good way to do it (suggestions more than welcome), and possibly contribute some kind of recipe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions