neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8d8f17c924fdc59ed66424ec113b7b8c0e3b239e
parent e82aef2e22a57688dcc19a978cbe083349ad8a2a
Author: Riley Bruins <ribru17@hotmail.com>
Date:   Tue, 25 Nov 2025 10:00:28 -0800

refactor(defaults): deduplicate selection_range() mappings #36686

We don't need to specify the timeout ms here anymore, because the
implementation was changed to use it by default.
Diffstat:
Mruntime/lua/vim/_defaults.lua | 12++----------
1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua @@ -219,22 +219,14 @@ do vim.lsp.buf.type_definition() end, { desc = 'vim.lsp.buf.type_definition()' }) - vim.keymap.set('x', 'an', function() + vim.keymap.set({ 'x', 'o' }, 'an', function() vim.lsp.buf.selection_range(vim.v.count1) end, { desc = 'vim.lsp.buf.selection_range(vim.v.count1)' }) - vim.keymap.set('x', 'in', function() + vim.keymap.set({ 'x', 'o' }, 'in', function() vim.lsp.buf.selection_range(-vim.v.count1) end, { desc = 'vim.lsp.buf.selection_range(-vim.v.count1)' }) - vim.keymap.set('o', 'an', function() - vim.lsp.buf.selection_range(vim.v.count1, 1000) - end, { desc = 'vim.lsp.buf.selection_range(vim.v.count1, timeout_ms)' }) - - vim.keymap.set('o', 'in', function() - vim.lsp.buf.selection_range(-vim.v.count1, 1000) - end, { desc = 'vim.lsp.buf.selection_range(-vim.v.count1, timeout_ms)' }) - vim.keymap.set('n', 'gO', function() vim.lsp.buf.document_symbol() end, { desc = 'vim.lsp.buf.document_symbol()' })