diff --git a/lua/cmp_nvim_ultisnips/snippets.lua b/lua/cmp_nvim_ultisnips/snippets.lua index fe65e10..9213f8e 100644 --- a/lua/cmp_nvim_ultisnips/snippets.lua +++ b/lua/cmp_nvim_ultisnips/snippets.lua @@ -14,7 +14,8 @@ function M.load_snippets(expandable_only) local ft = vim.bo.filetype local snippets = snippets_for_ft[ft] if not snippets then - snippets_for_ft[ft] = vim.fn.pyeval("ultisnips_utils.fetch_current_snippets(False)") + snippets = vim.fn.pyeval("ultisnips_utils.fetch_current_snippets(False)") + snippets_for_ft[ft] = snippets end return snippets end