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

feat: cycle completions #12

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

mdjohns
Copy link
Contributor

@mdjohns mdjohns commented Oct 8, 2024

resolves #8.
calling select_prev at the beginning of the completion list will now cycle to the end.
calling select_next at the end of the completion list will now cycle back to the beginning.

it may make sense to make this config-driven, let me know what you'd prefer!

@Saghen
Copy link
Owner

Saghen commented Oct 8, 2024

Thank you! I'd prefer config driven like windows.autocomplete.cycle = { from_bottom = true, from_top = true }

@shubham-cpp
Copy link

shubham-cpp commented Oct 8, 2024

@mdjohns , could you also update the readme in this PR, because the username in readme to install the plugin is incorrect

{
  'saghen/blink.cmp', -- should be "Saghen/blink.cmp"
  lazy = false, -- lazy loading handled internally
  -- optional: provides snippets for the snippet source
  dependencies = 'rafamadriz/friendly-snippets',

  -- use a release tag to download pre-built binaries
  version = 'v0.*',
  -- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
  -- build = 'cargo build --release',

  opts = {
    highlight = {
      -- sets the fallback highlight groups to nvim-cmp's highlight groups
      -- useful for when your theme doesn't support blink.cmp
      -- will be removed in a future release, assuming themes add support
      use_nvim_cmp_as_default = true,
    },
    -- set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
    -- adjusts spacing to ensure icons are aligned
    nerd_font_variant = 'normal',
    
    -- experimental auto-brackets support
    -- accept = { auto_brackets = { enabled = true } }
    
    -- experimental signature help support
    -- trigger = { signature_help = { enabled = true } }
  }
}

@mdjohns mdjohns force-pushed the feat/cycle-completions branch from 12ce4bb to 2fc28c3 Compare October 8, 2024 11:07
@mdjohns mdjohns force-pushed the feat/cycle-completions branch from 2fc28c3 to 7539d82 Compare October 8, 2024 11:08
@mdjohns
Copy link
Contributor Author

mdjohns commented Oct 8, 2024

@Saghen done! i also updated the readme to reflect the change.
let me know what you think!

@mdjohns
Copy link
Contributor Author

mdjohns commented Oct 8, 2024

@shubham-cpp these URLs aren't case sensitive: The lowercase URL works fine in my config.

@Saghen Saghen merged commit d20e34d into Saghen:main Oct 8, 2024
@Saghen
Copy link
Owner

Saghen commented Oct 8, 2024

Thank you!

@mdjohns mdjohns deleted the feat/cycle-completions branch October 8, 2024 13:38
lopi-py pushed a commit to lopi-py/blink.cmp that referenced this pull request Oct 10, 2024
lopi-py pushed a commit to lopi-py/blink.cmp that referenced this pull request Oct 10, 2024
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

Successfully merging this pull request may close these issues.

Cycle through completions
3 participants