aboutsummaryrefslogtreecommitdiff
path: root/modules/neovim/keybinds.lua
diff options
context:
space:
mode:
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)" })
+