Skip to content

Commit

Permalink
feat: buffer scroll mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
fagci committed Jun 6, 2022
1 parent b6446f0 commit d263b87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nvim/.config/nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ map('v', '<A-UP>', ':m \'<-2<CR>gv=gv', N)
map('n', '<A-LEFT>', ':SidewaysLeft<CR>', N)
map('n', '<A-RIGHT>', ':SidewaysRight<CR>', N)

-- Scroll buffer contents
map('n', '<C-UP>', '<C-Y>', N)
map('n', '<C-DOWN>', '<C-E>', N)

-- Resize windows
map('', '<C-S-Left>', ':vertical resize -1<CR>', NS)
map('', '<C-S-Right>', ':vertical resize +1<CR>', NS)
Expand Down

0 comments on commit d263b87

Please sign in to comment.