summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorAdam <adam.moloney.stuck@gmail.com>2022-03-10 16:16:49 +0100
committeradamstuck <adam.moloney.stuck@gmail.com>2022-03-10 18:13:49 +0100
commitd394e7dc27de4416f3ba74da736a5251c19a36f4 (patch)
treecb059a2e658f9d256b710397a78cbcd54e8425b5 /.config/nvim
parent076dcfcf5e59848ea12cbb46e951945c229e3992 (diff)
(n)vim: leader+arrow window nav
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/binds.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua
index 0e7ae96..7b5d3fe 100644
--- a/.config/nvim/lua/binds.lua
+++ b/.config/nvim/lua/binds.lua
@@ -24,6 +24,10 @@ map('n', '<leader>h', ':wincmd h<CR>', opts)
map('n', '<leader>j', ':wincmd j<CR>', opts)
map('n', '<leader>k', ':wincmd k<CR>', opts)
map('n', '<leader>l', ':wincmd l<CR>', opts)
+map('n', '<leader><left>', ':wincmd h<CR>', opts)
+map('n', '<leader><down>', ':wincmd j<CR>', opts)
+map('n', '<leader><up>', ':wincmd k<CR>', opts)
+map('n', '<leader><right>', ':wincmd l<CR>', opts)
map('n', '<leader>p', '<cmd>Telescope find_files<cr>', opts)
map('n', '<leader>P', '<cmd>Telescope file_browser hidden=true<cr>', opts)