diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-12-19 17:55:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-19 17:55:50 +0000 |
| commit | 9aaaa0c5f3eb665b51bbcafda084de4b0952fef0 (patch) | |
| tree | b80cdb4a8b01d5afe5678218ea280fb4d275678d /lua/telescope/_extensions/init.lua | |
| parent | 5f37fbfa837dfee7ecd30f388b271f4a71c0a9e0 (diff) | |
fix: `builtin` only have entries for extension functions (#1587)
* fix: `builtin` only have entries for extension functions
* fix: add check for underscore and explanation of which functions included
Diffstat (limited to 'lua/telescope/_extensions/init.lua')
| -rw-r--r-- | lua/telescope/_extensions/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/_extensions/init.lua b/lua/telescope/_extensions/init.lua index fc3fa2c..c3349ff 100644 --- a/lua/telescope/_extensions/init.lua +++ b/lua/telescope/_extensions/init.lua @@ -43,6 +43,9 @@ extensions.manager = setmetatable({}, { --- --- Only the items in `exports` will be exposed on the resulting --- module that users can access via require('telescope').extensions.foo +--- Also, any top-level key-value pairs in exports where the value is a function and the +--- key doesn't start with an underscore will be included when calling the `builtin` picker +--- with the `include_extensions` option enabled. --- --- Other things in the module will not be accessible. This is the public API --- for your extension. Consider not breaking it a lot :laugh: |
