diff options
| author | Julian Berman <Julian@GrayVines.com> | 2020-11-24 15:29:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-24 15:29:46 -0500 |
| commit | 0f9fd84a9742e22294cfaf46f32bad9b29de0b31 (patch) | |
| tree | f34259bca9aa5d06925c83a84f2c152046b91c74 /lua | |
| parent | ec9b501993716c20872285c866183bef48bf209f (diff) | |
fix: Use noremap when mapping. (#286)
Previously, if e.g. : was remapped, Telescope would be unclosable with
its mappings (<Esc>).
(Do the same for ensuring we :silent)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/mappings.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/telescope/mappings.lua b/lua/telescope/mappings.lua index 766f861..499be3e 100644 --- a/lua/telescope/mappings.lua +++ b/lua/telescope/mappings.lua @@ -94,9 +94,9 @@ local telescope_map = function(prompt_bufnr, mode, key_bind, key_func, opts) return end - opts = opts or { - silent = true - } + opts = opts or {} + if opts.noremap == nil then opts.noremap = true end + if opts.silent == nil then opts.silent = true end if type(key_func) == "string" then a.nvim_buf_set_keymap( |
