Skip to content

Commit

Permalink
refactor(tests): update blink.cmp to v0.8.0 and refactor the config
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Dec 20, 2024
1 parent 2ec6aef commit 426bef3
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions integration-tests/test-environment/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,21 @@ local plugins = {
"saghen/blink.cmp",
event = "VeryLazy",
-- use a release tag to download pre-built binaries
version = "v0.*",
-- https://github.com/Saghen/blink.cmp/releases
version = "v0.8.0",

-- to (locally) track nightly builds, use the following:
-- version = false,
-- dir = "/Users/mikavilpas/git/blink.cmp/",
-- build = "cargo build --release",

---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
sources = {
completion = {
enabled_providers = {
"buffer",
"ripgrep",
},
default = {
"buffer",
"ripgrep",
},
providers = {
ripgrep = {
Expand All @@ -62,18 +64,6 @@ local plugins = {
},
},
},
-- configuration for the stable version of blink
windows = {
autocomplete = {
max_height = 25,
},
documentation = {
auto_show = true,
auto_show_delay_ms = 0,
-- file names need to fit the screen when testing
max_width = 200,
},
},

-- 2024-11-28 configuration for the nightly version of blink. mikavilpas
-- uses this for local development, but currently ci uses the stable
Expand All @@ -95,6 +85,13 @@ local plugins = {
max_height = 25,
},
},
keymap = {
["<c-g>"] = {
function()
require("blink-cmp").show({ providers = { "ripgrep" } })
end,
},
},
},
},
{
Expand Down

0 comments on commit 426bef3

Please sign in to comment.