mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim/haskell: lazy load snippet only once
This commit is contained in:
parent
5f34897169
commit
21c920be35
1 changed files with 6 additions and 3 deletions
|
|
@ -4,6 +4,9 @@ opts.matchit_let_in()
|
||||||
vim.bo.shiftwidth = 2
|
vim.bo.shiftwidth = 2
|
||||||
vim.bo.expandtab = true
|
vim.bo.expandtab = true
|
||||||
|
|
||||||
local luasnip = require("luasnip")
|
local once = require("once")
|
||||||
local haskell_snippets = require("haskell-snippets").all
|
once.test_and_load("ft_haskell", function()
|
||||||
luasnip.add_snippets("haskell", haskell_snippets, { key = "haskell" })
|
local luasnip = require("luasnip")
|
||||||
|
local haskell_snippets = require("haskell-snippets").all
|
||||||
|
luasnip.add_snippets("haskell", haskell_snippets, { key = "haskell" })
|
||||||
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue