Skip to content

Commit

Permalink
feat(nvim): allow resize in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Nov 3, 2023
1 parent 273f799 commit 905300a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions configs/nvim/lua/editor/split-and-buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ local registry = require('lib.registry')

local split_management = function ()
-- split resize
bindings.map.normal('<A-S-Left>', '<cmd>vertical resize -5<cr>')
bindings.map.normal('<A-S-Right>', '<cmd>vertical resize +5<cr>')
bindings.map.normal('<A-S-Up>', '<cmd>resize +5<cr>')
bindings.map.normal('<A-S-Down>', '<cmd>resize -5<cr>')
bindings.map.nt('<A-S-Left>', '<cmd>vertical resize -5<cr>')
bindings.map.nt('<A-S-Right>', '<cmd>vertical resize +5<cr>')
bindings.map.nt('<A-S-Up>', '<cmd>resize +5<cr>')
bindings.map.nt('<A-S-Down>', '<cmd>resize -5<cr>')
bindings.map.normal('<Left>', '<cmd>vertical resize -1<cr>')
bindings.map.normal('<Right>', '<cmd>vertical resize +1<cr>')
bindings.map.normal('<Up>', '<cmd>resize +1<cr>')
Expand Down
3 changes: 2 additions & 1 deletion configs/nvim/lua/lib/bindings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ local map = function (mapper)
operator = keymap {'o'},
terminal = keymap {'t'},
ni = keymap {'n', 'i'},
nv = keymap {'n', 'v'}
nv = keymap {'n', 'v'},
nt = keymap {'n', 't'}
}
end

Expand Down

0 comments on commit 905300a

Please sign in to comment.