This reverts commit 6daf35c88c.
This commit is contained in:
@@ -221,6 +221,10 @@ mappings.apply_keymap = function(prompt_bufnr, attach_mappings, buffer_keymap)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
vim.cmd(
|
||||
string.format([[autocmd BufDelete %s :lua require('telescope.mappings').clear(%s)]], prompt_bufnr, prompt_bufnr)
|
||||
)
|
||||
end
|
||||
|
||||
mappings.execute_keymap = function(prompt_bufnr, keymap_identifier)
|
||||
@@ -233,12 +237,6 @@ mappings.execute_keymap = function(prompt_bufnr, keymap_identifier)
|
||||
end
|
||||
|
||||
mappings.clear = function(prompt_bufnr)
|
||||
require("telescope.actions.mt").clear_all()
|
||||
-- TODO(conni2461): This seems like the better solution but it won't clear actions that were never mapped
|
||||
-- for _, v in ipairs(keymap_store[prompt_bufnr]) do
|
||||
-- pcall(v.clear)
|
||||
-- end
|
||||
|
||||
keymap_store[prompt_bufnr] = nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user