diff --git a/lua/keymap/core.lua b/lua/keymap/core.lua index 1314b06..8c0abe3 100644 --- a/lua/keymap/core.lua +++ b/lua/keymap/core.lua @@ -40,5 +40,5 @@ Config.leader_group_clues = { { mode = 'x', keys = 'r', desc = '+R' }, { mode = 'n', keys = 'z', desc = '+ZK' }, { mode = 'n', keys = 'zr', desc = '+Reviews' }, - { mode = 'x', keys = 'a', desc = '+AI' }, + { mode = 'x', keys = 'a', desc = '+AI' }, } diff --git a/lua/keymap/leader.lua b/lua/keymap/leader.lua index 2543212..795079f 100644 --- a/lua/keymap/leader.lua +++ b/lua/keymap/leader.lua @@ -163,6 +163,10 @@ nmap_leader('rm', 'RSend Rcpp::compileAttributes()', 'Run examples') nmap_leader('rT', 'RSend testthat::test_file("%")', 'Test file') nmap_leader('rt', 'RSend devtools::test()', 'Test') +-- Visual `r` bindings (dispatched by the filetype-aware REPL +-- runner in `lua/keymap/repl.lua`). Previously the visual clue group was +-- empty, so this restores parity between the visual and normal `r`-group. +xmap_leader('rr', function() require('keymap.repl').send_selection() end, 'Send selection to REPL') -- - Copy to clipboard and make reprex (which itself is loaded to clipboard) xmap_leader('rx', '"+y :RSend reprex::reprex()', 'Reprex selection')