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.
This commit is contained in:
Riley Bruins
2025-11-25 10:00:28 -08:00
committed by GitHub
parent e82aef2e22
commit 8d8f17c924

View File

@@ -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()' })