aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_defaults.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-10-11 11:56:21 -0500
committerGitHub <noreply@github.com>2024-10-11 11:56:21 -0500
commit26e765f905cbf1df18cfc825bad9b1b982f517ea (patch)
tree0693fb5f969ee8f07020e7dde001f9dcd029ac25 /runtime/lua/vim/_defaults.lua
parentd3193afc2559e7d84ed2d76664a650dc03b4c6ef (diff)
downloadrneovim-26e765f905cbf1df18cfc825bad9b1b982f517ea.tar.gz
rneovim-26e765f905cbf1df18cfc825bad9b1b982f517ea.tar.bz2
rneovim-26e765f905cbf1df18cfc825bad9b1b982f517ea.zip
feat(defaults): map gri to vim.lsp.buf.implementation() (#30764)
Continuing the default LSP maps under the "gr" prefix. Mnemonic: "i" for "implementation".
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r--runtime/lua/vim/_defaults.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua
index 6cad1dbca9..8e850f4cd3 100644
--- a/runtime/lua/vim/_defaults.lua
+++ b/runtime/lua/vim/_defaults.lua
@@ -157,7 +157,7 @@ do
--- client is attached. If no client is attached, or if a server does not support a capability, an
--- error message is displayed rather than exhibiting different behavior.
---
- --- See |grr|, |grn|, |gra|, |i_CTRL-S|.
+ --- See |grr|, |grn|, |gra|, |gri|, |i_CTRL-S|.
do
vim.keymap.set('n', 'grn', function()
vim.lsp.buf.rename()
@@ -171,6 +171,10 @@ do
vim.lsp.buf.references()
end, { desc = 'vim.lsp.buf.references()' })
+ vim.keymap.set('n', 'gri', function()
+ vim.lsp.buf.implementation()
+ end, { desc = 'vim.lsp.buf.implementation()' })
+
vim.keymap.set('i', '<C-S>', function()
vim.lsp.buf.signature_help()
end, { desc = 'vim.lsp.buf.signature_help()' })