We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24fa2a9 commit 917dfbeCopy full SHA for 917dfbe
lua/lazy/view/init.lua
@@ -297,11 +297,14 @@ function M:setup_modes()
297
end
298
if m.key_plugin and name ~= "restore" then
299
self:on_key(m.key_plugin, function()
300
- vim.api.nvim_feedkeys(vim.keycode("<esc>"), "n", false)
+ local esc = vim.api.nvim_replace_termcodes("<esc>", true, true, true)
301
+ vim.api.nvim_feedkeys(esc, "n", false)
302
local plugins = {}
303
if vim.api.nvim_get_mode().mode:lower() == "v" then
304
local f, t = vim.fn.line("."), vim.fn.line("v")
- if f > t then f, t = t, f end
305
+ if f > t then
306
+ f, t = t, f
307
+ end
308
for i = f, t do
309
plugins[#plugins + 1] = self.render:get_plugin(i)
310
0 commit comments