Skip to content

Commit

Permalink
whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 committed Oct 8, 2023
1 parent 09a2959 commit 172ca93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/luasnip/loaders/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ end

local function get_load_fts(bufnr)
local fts = session.config.load_ft_func(bufnr)
-- also add "all", loaded by all buffers.
table.insert(fts, "all")

return util.redirect_filetypes(fts)
return util.deduplicate(util.redirect_filetypes(fts))
end

local function add_file_snippets(ft, filename, snippets, autosnippets, add_opts)
Expand Down

0 comments on commit 172ca93

Please sign in to comment.