From 3b88285fc11447836c05c57c3817abf70333e3f3 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 2 Feb 2025 21:05:50 +0100 Subject: [PATCH] fixed blink breaking changes --- lua/plugins/blink.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 7119b0d..43c5e92 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -79,9 +79,10 @@ return { -- default list of enabled providers defined so that you can extend it -- elsewhere in your config, without redefining it, via `opts_extend` sources = { - default = { 'copilot', 'lazydev', 'lsp', 'path', 'luasnip', 'buffer', 'codeium' }, + default = { 'copilot', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'codeium' }, -- optionally disable cmdline completions -- cmdline = {}, + cmdline = function() local type = vim.fn.getcmdtype() -- Search forward and backward @@ -147,14 +148,7 @@ return { -- experimental signature help support signature = { enabled = true }, snippets = { - expand = function(snippet) require('luasnip').lsp_expand(snippet) end, - active = function(filter) - if filter and filter.direction then - return require('luasnip').jumpable(filter.direction) - end - return require('luasnip').in_snippet() - end, - jump = function(direction) require('luasnip').jump(direction) end, + preset = 'luasnip' }, }, -- allows extending the providers array elsewhere in your config