From 17569891e952e25be9fa58ceeee9b5c4b7479184 Mon Sep 17 00:00:00 2001 From: "Wansmer (Ivan Smirnov)" Date: Thu, 9 May 2024 10:40:20 +0300 Subject: [PATCH] fix: return mode `n` instead of `nix` for feedkeys --- lua/langmapper/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/langmapper/utils.lua b/lua/langmapper/utils.lua index d701bff..bdc6560 100644 --- a/lua/langmapper/utils.lua +++ b/lua/langmapper/utils.lua @@ -221,7 +221,7 @@ local function feed_nmap(keys) keys = vim.api.nvim_replace_termcodes(keys, true, true, true) -- Mode always should be noremap to avoid recursion local count = vim.v.count > 0 and vim.v.count or '' - vim.api.nvim_feedkeys(count .. keys, 'nix', true) + vim.api.nvim_feedkeys(count .. keys, 'n', true) end local function collect_variant_commands(from, to)