Skip to content

Commit

Permalink
Use noremap when mapping.
Browse files Browse the repository at this point in the history
Previously, if e.g. : was remapped, Telescope would be unclosable with
its mappings (<Esc>).
  • Loading branch information
Julian committed Nov 24, 2020
1 parent ec9b501 commit 781b7a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/telescope/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ local telescope_map = function(prompt_bufnr, mode, key_bind, key_func, opts)
opts = opts or {
silent = true
}
if opts.noremap == nil then opts.noremap = true end

if type(key_func) == "string" then
a.nvim_buf_set_keymap(
Expand Down

0 comments on commit 781b7a4

Please sign in to comment.