summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-11-02 20:18:31 +0100
committerSkladnayazebra <skladnayazebra@gmail.com>2025-11-02 20:18:31 +0100
commitef4001a6b8b037a89c4cc5725279dcc16d828af5 (patch)
tree05523b8a2c8d560aa5c40ee73cbaf1e41f8e1d00 /nvim
parent3c5c2459610bddf567f6333723baf9fc03bdd889 (diff)
Add new navigation hotkeys
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 42553dd..89a8925 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -7,11 +7,18 @@ vim.o.number = true
vim.o.signcolumn = "yes"
vim.cmd([[colorscheme gruvbox]])
+-- easier window navigation
+vim.keymap.set('n', '<C-h>', '<C-w>h', { noremap = true, silent = true })
+vim.keymap.set('n', '<C-j>', '<C-w>j', { noremap = true, silent = true })
+vim.keymap.set('n', '<C-k>', '<C-w>k', { noremap = true, silent = true })
+vim.keymap.set('n', '<C-l>', '<C-w>l', { noremap = true, silent = true })
+
+-- LSP binds
vim.keymap.set('n', 'gl', vim.diagnostic.open_float, { noremap = true, silent = true })
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { noremap = true, silent = true })
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { noremap = true, silent = true })
--- la - for LAzy
+-- la - for LAzy (plugin manager)
vim.keymap.set('n', '<leader>la', ':Lazy<CR>', { noremap = true, silent = true })
-- Fugitive shortcuts