From 4ef8f84a18cb394ca5d1e70a594b09aa4df206b0 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Fri, 20 Dec 2024 21:09:33 +0200 Subject: [PATCH] docs: update instructions for blink.cmp v0.8.0 --- README.md | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6e5c591..022897d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -102,7 +95,7 @@ return { keymap = { [""] = { function() - -- invoke manually, requires blink >v0.7.6 + -- invoke manually, requires blink >v0.8.0 require("blink-cmp").show({ sources = { "ripgrep" } }) end, }, @@ -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