diff options
author | Adam <adam.moloney.stuck@gmail.com> | 2022-03-10 16:16:49 +0100 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2022-03-10 18:13:49 +0100 |
commit | d394e7dc27de4416f3ba74da736a5251c19a36f4 (patch) | |
tree | cb059a2e658f9d256b710397a78cbcd54e8425b5 | |
parent | 076dcfcf5e59848ea12cbb46e951945c229e3992 (diff) |
(n)vim: leader+arrow window nav
-rw-r--r-- | .config/nvim/lua/binds.lua | 4 | ||||
-rw-r--r-- | .vim/vimrc | 4 |
2 files changed, 8 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) @@ -59,6 +59,10 @@ nnoremap <leader>h :wincmd h<CR> nnoremap <leader>j :wincmd j<CR> nnoremap <leader>k :wincmd k<CR> nnoremap <leader>l :wincmd l<CR> +nnoremap <leader><left> :wincmd h<CR> +nnoremap <leader><down> :wincmd j<CR> +nnoremap <leader><up> :wincmd k<CR> +nnoremap <leader><right> :wincmd l<CR> let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum" let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum" |