Skip to content

Commit 59add2d

Browse files
committed
fix: default snippet active function not returning
Closes #399
1 parent f569aeb commit 59add2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ MiniDeps.add({
259259
-- Function to use when expanding LSP provided snippets
260260
expand = function(snippet) vim.snippet.expand(snippet) end,
261261
-- Function to use when checking if a snippet is active
262-
active = function(filter) vim.snippet.active(filter) end,
262+
active = function(filter) return vim.snippet.active(filter) end,
263263
-- Function to use when jumping between tab stops in a snippet, where direction can be negative or positive
264264
jump = function(direction) vim.snippet.jump(direction) end,
265265
},

lua/blink/cmp/config/snippets.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local snippets = {
1010
-- NOTE: we wrap these in functions to reduce startup by 1-2ms
1111
-- when using lazy.nvim
1212
expand = function(snippet) vim.snippet.expand(snippet) end,
13-
active = function(filter) vim.snippet.active(filter) end,
13+
active = function(filter) return vim.snippet.active(filter) end,
1414
jump = function(direction) vim.snippet.jump(direction) end,
1515
},
1616
}

0 commit comments

Comments
 (0)