summaryrefslogtreecommitdiff
path: root/lua/telescope/config.lua
diff options
context:
space:
mode:
authorWaldson PatrĂ­cio <waldsonpatricio@gmail.com>2022-03-20 17:34:07 -0300
committerGitHub <noreply@github.com>2022-03-20 21:34:07 +0100
commit1a72a92b641e1dab42036c07e2571b43c55bfaa1 (patch)
tree417a6002a86b0ca9764e1cfc306fd39c2218a67c /lua/telescope/config.lua
parent6a43634f5f492113fd0bdec225d936a17b9ecbf2 (diff)
feat: enable individual options for mappings (#890)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/config.lua')
-rw-r--r--lua/telescope/config.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index bf8c211..26f5845 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -690,6 +690,16 @@ append(
["jj"] = { "<esc>", type = "command" },
["kk"] = { "<cmd>echo \"Hello, World!\"<cr>", type = "command" },)
...,
+
+ You can also add additional options for mappings of any type
+ ("action" and "command"). For example:
+
+ ...,
+ ["<C-j>"] = {
+ action = actions.move_selection_next,
+ opts = { nowait = true, silent = true }
+ },
+ ...,
]]
)