feat: enable individual options for mappings (#890)

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
This commit is contained in:
Waldson Patrício
2022-03-20 17:34:07 -03:00
committed by GitHub
parent 6a43634f5f
commit 1a72a92b64
3 changed files with 32 additions and 2 deletions

View File

@@ -538,6 +538,16 @@ telescope.setup({opts}) *telescope.setup()*
...,
["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 }
},
...,