Skip to content

Commit

Permalink
docs: recipe for dynamic auto show
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 23, 2024
1 parent c1017f0 commit 3433e1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ completion = {
}
```

## Don't show completion menu automatically in cmdline mode

```lua
completion = {
menu = { auto_show = function(ctx) return ctx.mode ~= 'cmdline' end }
}
```

## Select Nth item from the list

Here's an example configuration that allows you to select the nth item from the list, based on [#382](https://github.com/Saghen/blink.cmp/issues/382):
Expand Down

0 comments on commit 3433e1b

Please sign in to comment.