fix printable characters being mapped in select mode

most of the "visual mode" mappings use "v" instead of "x", affecting
select mode, which should not have printable characters remapped. (this
is felt when e.g. using snippets)
This commit is contained in:
akioweh 2025-07-28 23:59:47 +04:00
parent 25abbf546d
commit fa94c73362
No known key found for this signature in database
13 changed files with 27 additions and 27 deletions

View file

@ -76,13 +76,13 @@ return {
end
vim.keymap.set(
{ "n", "v" },
{ "n", "x" },
"[c",
"<CMD>call search('^; -\\+$', 'bw')<CR>",
{ silent = true, buffer = true, desc = "Jumps to the begining of previous evaluation output." }
)
vim.keymap.set(
{ "n", "v" },
{ "n", "x" },
"]c",
"<CMD>call search('^; -\\+$', 'w')<CR>",
{ silent = true, buffer = true, desc = "Jumps to the begining of next evaluation output." }

View file

@ -221,7 +221,7 @@ return {
})
wk.add({
{
mode = "v",
mode = "x",
buffer = args.buf,
{ "<leader>cx", group = "extract" },
{

View file

@ -17,12 +17,12 @@ return {
-- of files supported by R.nvim. This is an
-- opportunity to create mappings local to buffers.
vim.keymap.set("n", "<Enter>", "<Plug>RDSendLine", { buffer = true })
vim.keymap.set("v", "<Enter>", "<Plug>RSendSelection", { buffer = true })
vim.keymap.set("x", "<Enter>", "<Plug>RSendSelection", { buffer = true })
local wk = require("which-key")
wk.add({
buffer = true,
mode = { "n", "v" },
mode = { "n", "x" },
{ "<localleader>a", group = "all" },
{ "<localleader>b", group = "between marks" },
{ "<localleader>c", group = "chunks" },