We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 285f6f4 commit 3ac471bCopy full SHA for 3ac471b
lua/blink/cmp/sources/snippets/init.lua
@@ -9,11 +9,12 @@
9
local snippets = {}
10
11
function snippets.new(opts)
12
+ opts = opts or {}
13
local self = setmetatable({}, { __index = snippets })
14
--- @type table<string, blink.cmp.CompletionItem[]>
15
self.cache = {}
16
--- @type blink.cmp.SnippetsOpts
- self.registry = require('blink.cmp.sources.snippets.registry').new(opts or {})
17
+ self.registry = require('blink.cmp.sources.snippets.registry').new(opts)
18
self.get_filetype = opts.get_filetype or function() return vim.bo.filetype end
19
return self
20
end
0 commit comments