]> git.r.bdr.sh - rbdr/oleoboard.nvim/blob - lua/oleoboard/keybinds.lua
bbb7c60c76bbe1a2ba6f0cb7d61540f788f59a89
[rbdr/oleoboard.nvim] / lua / oleoboard / keybinds.lua
1 -------------------------------------------------------------------------------
2 -- Sets the default keybinds
3 -------------------------------------------------------------------------------
4 local Keybinds = {}
5 -------------------------------------------------------------------------------
6 -- Public Interface
7 -------------------------------------------------------------------------------
8
9 --- Sets the default keybinds
10 function Keybinds.bind()
11 local api = vim.api
12
13 api.nvim_set_keymap('n', 'bb', '<cmd>OleoBoardToggle<CR>', { noremap = true, silent = true })
14 api.nvim_set_keymap('n', 'bl', '<cmd>OleoBoardMoveEntryRight<CR>', { noremap = true, silent = true })
15 api.nvim_set_keymap('n', 'bh', '<cmd>OleoBoardMoveEntryLeft<CR>', { noremap = true, silent = true })
16 api.nvim_set_keymap('n', 'bL', '<cmd>OleoBoardMoveColumnRight<CR>', { noremap = true, silent = true })
17 api.nvim_set_keymap('n', 'bH', '<cmd>OleoBoardMoveColumnLeft<CR>', { noremap = true, silent = true })
18 end
19
20 return Keybinds