Skip to content

Commit b612a06

Browse files
committed
docs(snippets): mention how to interactively check context language
1 parent 67a8adb commit b612a06

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

doc/mini-snippets.txt

+2
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ Parameters ~
783783
used to find snippet files, as in |MiniSnippets.gen_loader.from_runtime()|.
784784
Patterns will be processed in order. With |MiniSnippets.default_prepare()|
785785
it means if snippets have same prefix, data from later patterns is used.
786+
To interactively check the current language with default context, execute
787+
`:=MiniSnippets.default_prepare({})` and see data in the second table.
786788

787789
Default pattern array (for non-empty language) is constructed as to read
788790
`*.json` and `*.lua` files that are:

lua/mini/snippets.lua

+2
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,8 @@ MiniSnippets.gen_loader = {}
830830
--- used to find snippet files, as in |MiniSnippets.gen_loader.from_runtime()|.
831831
--- Patterns will be processed in order. With |MiniSnippets.default_prepare()|
832832
--- it means if snippets have same prefix, data from later patterns is used.
833+
--- To interactively check the current language with default context, execute
834+
--- `:=MiniSnippets.default_prepare({})` and see data in the second table.
833835
---
834836
--- Default pattern array (for non-empty language) is constructed as to read
835837
--- `*.json` and `*.lua` files that are:

0 commit comments

Comments
 (0)