Skip to content

Commit 80df282

Browse files
authored
Merge pull request #620 from YuanYuYuan/master
Give a valid exmple for loaders.from_lua
2 parents 08511f9 + c2c77ee commit 80df282

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

DOC.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,15 +2010,15 @@ possible to customize them by setting `snip_env` in `setup`.
20102010
`~/snippets/all.lua`:
20112011
```lua
20122012
return {
2013-
parse("trig", "loaded!!")
2013+
s("trig", t("loaded!!"))
20142014
}
20152015
```
20162016
`~/snippets/c.lua`:
20172017
```lua
20182018
return {
2019-
parse("ctrig", "also loaded!!")
2019+
s("ctrig", t("also loaded!!"))
20202020
}, {
2021-
parse("autotrig", "autotriggered, if enabled")
2021+
s("autotrig", t("autotriggered, if enabled"))
20222022
}
20232023
```
20242024

doc/luasnip.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*luasnip.txt* For NVIM v0.5.0 Last change: 2022 October 10
1+
*luasnip.txt* For NVIM v0.5.0 Last change: 2022 October 11
22

33
==============================================================================
44
Table of Contents *luasnip-table-of-contents*
@@ -1971,7 +1971,7 @@ will be used, but it’s possible to customize them by setting `snip_env` in
19711971

19721972
>
19731973
return {
1974-
parse("trig", "loaded!!")
1974+
s("trig", t("loaded!!"))
19751975
}
19761976
<
19771977

@@ -1980,9 +1980,9 @@ will be used, but it’s possible to customize them by setting `snip_env` in
19801980

19811981
>
19821982
return {
1983-
parse("ctrig", "also loaded!!")
1983+
s("ctrig", t("also loaded!!"))
19841984
}, {
1985-
parse("autotrig", "autotriggered, if enabled")
1985+
s("autotrig", t("autotriggered, if enabled"))
19861986
}
19871987
<
19881988

0 commit comments

Comments
 (0)