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:
@@ -94,9 +94,9 @@ local telescope_map = function(prompt_bufnr, mode, key_bind, key_func, opts)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
opts = opts or {
|
opts = opts or {}
|
||||||
silent = true
|
if opts.noremap == nil then opts.noremap = true end
|
||||||
}
|
if opts.silent == nil then opts.silent = true end
|
||||||
|
|
||||||
if type(key_func) == "string" then
|
if type(key_func) == "string" then
|
||||||
a.nvim_buf_set_keymap(
|
a.nvim_buf_set_keymap(
|
||||||
|
|||||||
Reference in New Issue
Block a user