Skip to content

Commit

Permalink
fix: nil returned from load_snippets (#98)
Browse files Browse the repository at this point in the history
Closes #97.
  • Loading branch information
smjonas authored Jun 1, 2024
1 parent ae00afe commit 4044017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/cmp_nvim_ultisnips/snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4044017

Please sign in to comment.