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

Add option to not reverse select_next_item on bottom_up list (#1346) #1711

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 26, 2023

  1. Add option to not reverse select_next_item on bottom_up list (hrsh7t…

    …h#1346)
    
        * add feature requested in (hrsh7th#1346)
    
    Add a parameter to the function preserve_mapping_verticality, which will keep mappings like <Up> and <Down> not reversed even when used custom view is used with `selection_order = 'top_down'` configuration.
    
    Example use configuration:
    ```
        ["<Down>"] = cmp.mapping(cmp.mapping.select_next_item { behavior = cmp.SelectBehavior.Select, preserve_mapping_verticality = true }, { "i", "s" }),
        ["<Up>"] = cmp.mapping(cmp.mapping.select_prev_item { behavior = cmp.SelectBehavior.Select, preserve_mapping_verticality = true }, { "i", "s" }),
    ```
    GustawXYZ committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    bdd4727 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2023

  1. Configuration menu
    Copy the full SHA
    fe20e5c View commit details
    Browse the repository at this point in the history