mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 02:17:09 +10:00
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:
@@ -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()' })
|
||||
|
||||
Reference in New Issue
Block a user