Skip to content

Commit

Permalink
fix(nvim): use correct decl/definition lsp keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
water-sucks committed Sep 14, 2024
1 parent a6f2d30 commit f88e12d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home/profiles/base/nvim/lua/plugins/lsp/on_attach.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ local on_attach = function(_, bufnr)
wk.add({
{
buffer = bufnr,
{ "gd", vim.lsp.buf.declaration, desc = "Go to declaration" },
{ "gD", vim.lsp.buf.declaration, desc = "Go to declaration" },
{ "gd", vim.lsp.buf.definition, desc = "Go to definition" },
{ "gh", vim.lsp.buf.hover, desc = "Hover docs" },
{ "gi", vim.lsp.buf.implementation, desc = "Go to implementation" },
{ "go", vim.lsp.buf.open_float, desc = "Show code actions" },
Expand Down

0 comments on commit f88e12d

Please sign in to comment.