diff options
author | Ghjuvan Lacambre <lacambre@adacore.com> | 2025-03-31 15:22:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-31 06:22:21 -0700 |
commit | 57b4fb5c5318394b82508492232d6e926ef8f23f (patch) | |
tree | 25455c07c9239c93766faea221c7c97fe9877248 /runtime/lua/vim/_defaults.lua | |
parent | 4dabeff308222307ede8e74a2bd341713a7f7d81 (diff) | |
download | rneovim-57b4fb5c5318394b82508492232d6e926ef8f23f.tar.gz rneovim-57b4fb5c5318394b82508492232d6e926ef8f23f.tar.bz2 rneovim-57b4fb5c5318394b82508492232d6e926ef8f23f.zip |
fix(defaults): enable :terminal [[,]] motion in operator-pending mode #33217
This enables y]] to copy a command and its output.
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r-- | runtime/lua/vim/_defaults.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua index 3cb38be450..adec7bda93 100644 --- a/runtime/lua/vim/_defaults.lua +++ b/runtime/lua/vim/_defaults.lua @@ -622,10 +622,10 @@ do end vim.wo[0][0].winhighlight = winhl .. 'StatusLine:StatusLineTerm,StatusLineNC:StatusLineTermNC' - vim.keymap.set({ 'n', 'x' }, '[[', function() + vim.keymap.set({ 'n', 'x', 'o' }, '[[', function() jump_to_prompt(nvim_terminal_prompt_ns, 0, args.buf, -vim.v.count1) end, { buffer = args.buf, desc = 'Jump [count] shell prompts backward' }) - vim.keymap.set({ 'n', 'x' }, ']]', function() + vim.keymap.set({ 'n', 'x', 'o' }, ']]', function() jump_to_prompt(nvim_terminal_prompt_ns, 0, args.buf, vim.v.count1) end, { buffer = args.buf, desc = 'Jump [count] shell prompts forward' }) end, |