Skip to content

Commit 56b4052

Browse files
committed
fix issue preventing snippets starting with @,#,/ characters
1 parent 42a24d3 commit 56b4052

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/snippets/utils/cmp.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ source.new = function()
77
return setmetatable({}, { __index = source })
88
end
99

10+
source.get_keyword_pattern = function()
11+
return "\\%([^[:alnum:][:blank:]]\\|\\w\\+\\)"
12+
end
13+
1014
function source:is_available()
1115
local ok, _ = pcall(require, "snippets")
1216
return ok

0 commit comments

Comments
 (0)