Skip to content

Commit 6ff88ad

Browse files
committed
feat(readme): update lua auto-snippets
1 parent 9a0e49d commit 6ff88ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ls.setup({
3838
# ⚙️ Configuration
3939

4040
Config Example:
41+
4142
```lua
4243
---@type LSSnippets.Config
4344
{
@@ -117,6 +118,12 @@ Snippets with `*` are available only when `vim_snippet` is enabled.
117118
| `.isnil` | Expands to `if ? == nil then` statement. | `any_expr` |
118119
| `.tget`\* | Expands to `vim.tbl_get(...)` expression. | `index_expr` |
119120

121+
#### Auto-snippets
122+
123+
| Trig | Desc | Context Required | Could Disable AutoExpansion |
124+
| :--: | ------------------------------------------------------ | :--------------: | :-------------------------: |
125+
| `#i` | Expands to `require(...)` statement with type hinting. | No | No |
126+
120127
</details>
121128

122129
<details>

0 commit comments

Comments
 (0)