diff --git a/lua/blink/cmp/sources/snippets/init.lua b/lua/blink/cmp/sources/snippets/init.lua index 224bdfbf..74d20729 100644 --- a/lua/blink/cmp/sources/snippets/init.lua +++ b/lua/blink/cmp/sources/snippets/init.lua @@ -9,11 +9,12 @@ local snippets = {} function snippets.new(opts) + opts = opts or {} local self = setmetatable({}, { __index = snippets }) --- @type table self.cache = {} --- @type blink.cmp.SnippetsOpts - self.registry = require('blink.cmp.sources.snippets.registry').new(opts or {}) + self.registry = require('blink.cmp.sources.snippets.registry').new(opts) self.get_filetype = opts.get_filetype or function() return vim.bo.filetype end return self end