-- saghen/blink.cmp: fast completion (Rust-backed, prebuilt binary). -- Sources are buffer words + file paths only (no LSP). Filename completion -- comes from the `path` source, triggered by typing `/` or `./`. -- `version = "*"` pulls a release tag, which ships a prebuilt `libblink` -- binary (x86_64/arm64, linux/mac) — no Rust toolchain needed on those arches. return { { "saghen/blink.cmp", event = "InsertEnter", version = "*", opts = { sources = { default = { "buffer", "path" }, }, completion = { ghost_text = { enabled = false }, list = { selection = { preselect = false, auto_insert = false } }, }, keymap = { preset = "super-tab", [""] = { "show", "show_documentation", "hide_documentation" }, [""] = { "hide", "fallback" }, [""] = { "select_next", function(cmp) if cmp.snippet_active() then return cmp.accept() else return cmp.select_and_accept() end end, "snippet_forward", "fallback", }, [""] = { "select_prev", "snippet_backward", "fallback" }, [""] = { "select_and_accept", "fallback_to_mappings" }, [""] = { "select_prev", "fallback" }, [""] = { "select_next", "fallback" }, [""] = { "select_prev", "fallback_to_mappings" }, [""] = { "select_next", "fallback_to_mappings" }, [""] = { "scroll_documentation_up", "fallback" }, [""] = { "scroll_documentation_down", "fallback" }, [""] = { "show_signature", "hide_signature", "fallback" }, }, }, }, }