nvim/haskell: lazy load snippet only once

This commit is contained in:
Primrose 2025-07-28 00:24:57 +02:00
parent 5f34897169
commit 21c920be35
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -4,6 +4,9 @@ opts.matchit_let_in()
vim.bo.shiftwidth = 2
vim.bo.expandtab = true
local once = require("once")
once.test_and_load("ft_haskell", function()
local luasnip = require("luasnip")
local haskell_snippets = require("haskell-snippets").all
luasnip.add_snippets("haskell", haskell_snippets, { key = "haskell" })
end)