Skip to content

Commit 8340087

Browse files
author
Marc Jakobi
committed
refactor!: rename fun to fn
1 parent 50ac34f commit 8340087

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,20 @@ ls.add_snippets('haskell', haskell_snippets, { key = 'haskell' })
145145
#### `haskell-snippets.data.ins`
146146

147147
- Trigger: `ins`
148-
- [ ] TODO: Add gif
148+
149+
![tty](https://github.com/mrcjkb/haskell-snippets.nvim/assets/12857160/60ab78d6-62f6-4b8a-97f3-6c211d4333dd)
149150

150151
#### `haskell-snippets.data.constraint`
151152

152153
- Trigger: `=>`
153-
- [ ] TODO: Add gif
154+
155+
![tty](https://github.com/mrcjkb/haskell-snippets.nvim/assets/12857160/018d0044-ae47-416d-9989-43faf3d1e2e1)
154156

155157
### Functions
156158

157159
#### `haskell-snippets.functions.fun`
158160

159-
- Trigger: `fun`
161+
- Trigger: `fn`
160162
- [ ] TODO: Add gif
161163

162164
#### `haskell-snippets.functions.func`

doc/haskell-snippets.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ModuleSnippetCollection *ModuleSnippetCollection*
4949

5050

5151
==============================================================================
52-
*haskell-snippets.data*
52+
*haskell-snippets.datadat*
5353

5454
Snippets related to data
5555

lua/haskell-snippets/functions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ local function build_multi_line_function_snippet(...)
8181
return build_function_snippet(true, ...)
8282
end
8383

84-
functions.fun = s({
84+
functions.fn = s({
8585
trig = 'fn',
8686
dscr = 'Function and type signature',
8787
}, {
8888
insert(1, 'someFunc'),
8989
text(' :: '),
9090
dynamic(2, build_single_line_function_snippet, { 1 }),
9191
})
92-
table.insert(functions.all, functions.fun)
92+
table.insert(functions.all, functions.fn)
9393

9494
functions.func = s({
9595
trig = 'func',

0 commit comments

Comments
 (0)