diff --git a/lua/lazyvim/plugins/extras/coding/blink.lua b/lua/lazyvim/plugins/extras/coding/blink.lua index d919ff9b..e571fc10 100644 --- a/lua/lazyvim/plugins/extras/coding/blink.lua +++ b/lua/lazyvim/plugins/extras/coding/blink.lua @@ -5,6 +5,8 @@ return { }, { "saghen/blink.cmp", + -- TODO: use release version + -- version = "*", opts_extend = { "sources.completion.enabled_providers" }, dependencies = { "rafamadriz/friendly-snippets", @@ -13,16 +15,15 @@ return { }, event = "InsertEnter", - -- use a release tag to download pre-built binaries - version = "*", - -- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust - -- build = 'cargo build --release', - -- If you use nix, you can build from source using latest nightly rust with: - -- build = 'nix run .#build-plugin', - ---@module 'blink.cmp' ---@type blink.cmp.Config opts = { + fuzzy = { + prebuilt_binaries = { + download = true, + force_version = "v0.5.0", + }, + }, highlight = { -- sets the fallback highlight groups to nvim-cmp's highlight groups -- useful for when your theme doesn't support blink.cmp @@ -57,21 +58,7 @@ return { }, keymap = { - [""] = { "show", "show_documentation", "hide_documentation" }, - [""] = { "hide" }, - [""] = { "select_and_accept" }, - [""] = { "select_and_accept", "fallback" }, - - [""] = { "select_prev", "fallback" }, - [""] = { "select_next", "fallback" }, - [""] = { "select_prev", "fallback" }, - [""] = { "select_next", "fallback" }, - - [""] = { "scroll_documentation_up", "fallback" }, - [""] = { "scroll_documentation_down", "fallback" }, - - [""] = { "snippet_forward", "fallback" }, - [""] = { "snippet_backward", "fallback" }, + preset = "enter", }, }, },