X-Git-Url: https://git.r.bdr.sh/rbdr/nota.nvim/blobdiff_plain/56292c7915662bbf721ca8c3d2cee6a04134a9c6..503d09fc95a47c13141d097cf80dd243d1dce342:/lua/keybinds.lua diff --git a/lua/keybinds.lua b/lua/keybinds.lua index de3d9ec..bbf160b 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -1,13 +1,14 @@ ------------------------------------------------------------------------------- -- Sets the default keybinds ------------------------------------------------------------------------------- +local Keybinds = {} ------------------------------------------------------------------------------- -- Public Interface ------------------------------------------------------------------------------- --- Sets the default keybinds -- @param configuration tNotaConfiguration the plugin configuration -function bind() +function Keybinds.bind() local api = vim.api api.nvim_set_keymap('n', 'od', 'NotaOpenDailyNote', { noremap = true, silent = true }) @@ -19,9 +20,11 @@ function bind() api.nvim_set_keymap('n', 'oa', 'NotaOpenAgenda', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'oo', 'NotaOpenOpen', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'oO', 'NotaOpenOpenImportant', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'oj', 'NotaOpenJournal', { noremap = true, silent = true }) api.nvim_set_keymap('n', 't', 'NotaToggleTask', { noremap = true, silent = true }) + api.nvim_set_keymap('n', 'st', 'NotaToggleTaskImportance', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'it', 'NotaInsertTask', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'ct', 'NotaCaptureTask', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'Tt', 'NotaTagTask', { noremap = true, silent = true }) @@ -36,3 +39,5 @@ function bind() api.nvim_set_keymap('n', 'op', 'NotaOpenPlan', { noremap = true, silent = true }) api.nvim_set_keymap('n', 'cp', 'NotaCapturePlan', { noremap = true, silent = true }) end + +return Keybinds