generated from mrcjkb/nvim-lua-nix-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.lua
48 lines (38 loc) · 1.19 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---@mod haskell-snippets
---@brief [[
--- Collection of LuaSnip snippets for Haskell.
---
--- To add the snippets to LuaSnip:
--->
---local ls = require('luasnip')
---ls.setup {
--- -- Add your LuaSnip config
---}
---local haskell_snippets = require('haskell-snippets').all
---ls.add_snippets('haskell', haskell_snippets, { key = 'haskell' })
---<
---@brief ]]
---@alias Snippet table
---@class HaskellSnippetCollection
local hs = {
all = {},
}
--- Snippets related to pragmas
hs.pragmas = require('haskell-snippets.pragmas')
vim.list_extend(hs.all, hs.pragmas.all)
--- Snippets related to modules
hs.module = require('haskell-snippets.module')
vim.list_extend(hs.all, hs.module.all)
--- Snippets related to data
hs.data = require('haskell-snippets.data')
vim.list_extend(hs.all, hs.data.all)
--- Snippets related to functions
hs.functions = require('haskell-snippets.functions')
vim.list_extend(hs.all, hs.functions.all)
--- Snippets related to expressions
hs.expressions = require('haskell-snippets.expressions')
vim.list_extend(hs.all, hs.expressions.all)
--- Snippets related to quasiqotes
hs.quasiqotes = require('haskell-snippets.quasiquotes')
vim.list_extend(hs.all, hs.quasiqotes.all)
return hs