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)
This commit is contained in:
Julian Berman
2020-11-24 15:29:46 -05:00
committed by GitHub
parent ec9b501993
commit 0f9fd84a97

View File

@@ -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(