Skip to content

Commit

Permalink
docs: update instructions for blink.cmp v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Dec 20, 2024
1 parent 426bef3 commit 4ef8f84
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,9 @@ return {
---@type blink.cmp.Config
opts = {
sources = {
completion = {
enabled_providers = {
-- NOTE: blink >v0.7.6 has moved
-- `sources.completion.enabled_providers` to `sources.default`
"lsp",
"path",
"snippets",
"buffer",
"ripgrep", -- 👈🏻 add "ripgrep" here
},
default = {
"buffer",
"ripgrep", -- 👈🏻 add "ripgrep" here
},
providers = {
-- 👇🏻👇🏻 add the ripgrep provider config below
Expand Down Expand Up @@ -102,7 +95,7 @@ return {
keymap = {
["<c-g>"] = {
function()
-- invoke manually, requires blink >v0.7.6
-- invoke manually, requires blink >v0.8.0
require("blink-cmp").show({ sources = { "ripgrep" } })
end,
},
Expand All @@ -114,9 +107,9 @@ return {

## 🏁 Performance

Depending on the size of your project and your computer's specifications, the
search can be fast or slow. Here are a few things you can do to improve
performance:
Generally performance is very good, but depending on the size of your project
and your computer's specifications, the search can be fast or slow. Here are a
few things you can do to improve performance:

- Set the `prefix_min_len` option to a larger number avoid starting a search for
very short words. This can prevent unnecessary searches and improve
Expand Down

0 comments on commit 4ef8f84

Please sign in to comment.