repos / dotfiles

my dotfiles

commit
b341338
parent
b13fe3d
author
Eric Bower
date
2025-08-14 13:46:03 -0400 EDT
chore(nvim): i need go to definition, not just type def
1 files changed,  +1, -0
M dot_config/nvim/init.lua
+1, -0
1@@ -77,6 +77,7 @@ local function setup_lsp()
2 			local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
3 			local bufopts = { noremap = true, silent = true, buffer = args.buf }
4 			map("i", "<C-k>", vim.lsp.completion.get, bufopts) -- open completion menu manually
5+      map("n", "grd", vim.lsp.buf.definition, bufopts)
6 
7 			if client:supports_method("textDocument/completion") then
8 				vim.lsp.completion.enable(true, client.id, args.buf, { autotrigger = true })