Skip to content

Commit

Permalink
chore(docs) Update recipes.md with multi buffer completion snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
joshzcold authored Jan 9, 2025
1 parent 4a380c1 commit ffa26a9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@ completion = {
}
```

### Buffer completion from all open buffers

```lua
providers = {
buffer = {
name = "Buffer",
module = "blink.cmp.sources.buffer",
opts = {
get_bufnrs = function()
return vim.api.nvim_list_bufs()
end,
},
},
},
```

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

```lua
Expand Down

0 comments on commit ffa26a9

Please sign in to comment.