add code search thing from HN

This commit is contained in:
Joel Beckmeyer 2024-10-18 14:00:03 -04:00
parent acfb9ff9c0
commit 31a49da779

View File

@ -37,6 +37,9 @@ vim.keymap.set('i', '<S-Tab>', function()
return '<S-Tab>'
end, { expr=true })
-- Code search? https://news.ycombinator.com/item?id=41739452
vim.keymap.set('n', 'gv', '<c-w>v<cmd>lua vim.lsp.buf.definition()<CR>', opts)
-- Tab stuff
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2