aboutsummaryrefslogtreecommitdiff
path: root/modules/neovim/keybinds.lua
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-03-02 13:30:28 -0500
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-03-02 13:30:28 -0500
commitb5e3e6f12b41a9a1133744e139c5aa47d1bee006 (patch)
tree460b2222c3823258eed2af239d3f78905141a538 /modules/neovim/keybinds.lua
parentcfa595c7264a3618759d8382de0996017c558e26 (diff)
downloadhome-b5e3e6f12b41a9a1133744e139c5aa47d1bee006.tar.gz
update before i break everything
Diffstat (limited to 'modules/neovim/keybinds.lua')
-rw-r--r--modules/neovim/keybinds.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/neovim/keybinds.lua b/modules/neovim/keybinds.lua
index cbd46c5..3f848b5 100644
--- a/modules/neovim/keybinds.lua
+++ b/modules/neovim/keybinds.lua
@@ -39,3 +39,15 @@ nmap('<leader>we', '<C-w><C-k>', { desc = "Focus window above the current one" }
nmap('<leader>wi', '<C-w><C-l>', { desc = "Focus window right of the current one" })
nmap('<leader>fo', '<cmd>Telescope find_files<CR>', { silent = true })
+nmap('<leader>?', '<cmd>Telescope live_grep<CR>', { silent = true })
+
+nmap('<leader>to', '<cmd>te<CR>', { silent = true; desc = "Open a terminal buffer in the current window." })
+
+map('n', 'grr', function()
+ vim.lsp.buf.references()
+end, { desc = "Code references (LSP)" })
+
+map('n', 'gd', function()
+ vim.lsp.buf.definition()
+end, { desc = "Goto definition (LSP)" })
+