mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
feat(lsp): incremental selection via "textDocument/selectionRange" #34011
Select outwards with "an" and inwards with "in" in Visual mode. Ranges are reset when leaving Visual mode.
This commit is contained in:
@@ -209,6 +209,14 @@ do
|
||||
vim.lsp.buf.implementation()
|
||||
end, { desc = 'vim.lsp.buf.implementation()' })
|
||||
|
||||
vim.keymap.set('x', 'an', function()
|
||||
vim.lsp.buf.selection_range('outer')
|
||||
end, { desc = "vim.lsp.buf.selection_range('outer')" })
|
||||
|
||||
vim.keymap.set('x', 'in', function()
|
||||
vim.lsp.buf.selection_range('inner')
|
||||
end, { desc = "vim.lsp.buf.selection_range('inner')" })
|
||||
|
||||
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