diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-09-03 11:22:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-03 11:22:26 +0200 |
| commit | 49b043e2a3e63cdd50bcde752e3b32dae22d8a3a (patch) | |
| tree | cd418016e89e686d4c5c14112ca4786df96724d9 /lua/telescope/actions/init.lua | |
| parent | b923665e64380e97294af09117e50266c20c71c7 (diff) | |
fix: nop i_<c-j> because we dont want allow new line (#2147)
Diffstat (limited to 'lua/telescope/actions/init.lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 7e0053a..1f047e2 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -1128,7 +1128,7 @@ actions.which_key = function(prompt_bufnr, opts) name = name == "" and action or name .. " + " .. action end end - if name and name ~= "which_key" then + if name and name ~= "which_key" and name ~= "nop" then if not opts.only_show_current_mode or mode == v.mode then table.insert(mappings, { mode = v.mode, keybind = v.keybind, name = name }) end @@ -1289,6 +1289,8 @@ actions.to_fuzzy_refine = function(prompt_bufnr) }) end +actions.nop = function(_) end + -- ================================================== -- Transforms modules and sets the correct metatables. -- ================================================== |
