Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lua/which-key/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ function M.execute(state, key, node)
if vim.v.register ~= Util.reg() and state.mode.mode ~= "i" and state.mode.mode ~= "c" then
keystr = '"' .. vim.v.register .. keystr
end

local curr_mode = vim.api.nvim_get_mode().mode

if curr_mode:find("ni[IRV]") ~= nil then
keystr = "<C-O>" .. keystr
end
end
Util.debug("feedkeys", tostring(state.mode), keystr)
local feed = vim.api.nvim_replace_termcodes(keystr, true, true, true)
Expand Down