From 31a49da77992a24d652fd2651d9b93f6afc04f37 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Fri, 18 Oct 2024 14:00:03 -0400 Subject: [PATCH] add code search thing from HN --- dot_config/nvim/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index d2ac12b..c8f7484 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -37,6 +37,9 @@ vim.keymap.set('i', '', function() return '' end, { expr=true }) +-- Code search? https://news.ycombinator.com/item?id=41739452 +vim.keymap.set('n', 'gv', 'vlua vim.lsp.buf.definition()', opts) + -- Tab stuff vim.opt.shiftwidth = 2 vim.opt.softtabstop = 2