Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d8f17c

Browse files
authored
refactor(defaults): deduplicate selection_range() mappings#36686
We don't need to specify the timeout ms here anymore, because theimplementation was changed to use it by default.
1 parente82aef2 commit8d8f17c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

‎runtime/lua/vim/_defaults.lua‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,14 @@ do
219219
vim.lsp.buf.type_definition()
220220
end, {desc='vim.lsp.buf.type_definition()'})
221221

222-
vim.keymap.set('x','an',function()
222+
vim.keymap.set({'x','o'},'an',function()
223223
vim.lsp.buf.selection_range(vim.v.count1)
224224
end, {desc='vim.lsp.buf.selection_range(vim.v.count1)'})
225225

226-
vim.keymap.set('x','in',function()
226+
vim.keymap.set({'x','o'},'in',function()
227227
vim.lsp.buf.selection_range(-vim.v.count1)
228228
end, {desc='vim.lsp.buf.selection_range(-vim.v.count1)'})
229229

230-
vim.keymap.set('o','an',function()
231-
vim.lsp.buf.selection_range(vim.v.count1,1000)
232-
end, {desc='vim.lsp.buf.selection_range(vim.v.count1, timeout_ms)'})
233-
234-
vim.keymap.set('o','in',function()
235-
vim.lsp.buf.selection_range(-vim.v.count1,1000)
236-
end, {desc='vim.lsp.buf.selection_range(-vim.v.count1, timeout_ms)'})
237-
238230
vim.keymap.set('n','gO',function()
239231
vim.lsp.buf.document_symbol()
240232
end, {desc='vim.lsp.buf.document_symbol()'})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp