diff --git a/lua/neorg-configure.lua b/lua/neorg-configure.lua index 0174f24..1e464eb 100644 --- a/lua/neorg-configure.lua +++ b/lua/neorg-configure.lua @@ -10,6 +10,29 @@ vim.api.nvim_create_autocmd({ "FileType" }, { vim.o.foldlevelstart = 99 vim.api.nvim_set_keymap("n", "nr", ":Neorg return", { noremap = true, silent = true, desc = "[N]eorg [R]eturn" }) + + -- Neorg Telescope + vim.api.nvim_set_keymap("n", "nh", "(neorg.telescope.search_headings)", + { noremap = true, silent = true, desc = "[N]eorg search [H]eading" }) + vim.api.nvim_set_keymap("n", "nb", "(neorg.telescope.backlinks.file_backlinks)", + { noremap = true, silent = true, desc = "[N]eorg file [B]acklinks" }) + vim.api.nvim_set_keymap("n", "", "(neorg.telescope.insert_link)", + { noremap = true, silent = true, desc = "Neorg insert [L]ink" }) + -- Tasks + vim.api.nvim_set_keymap("n", "td", "(neorg.qol.todo-items.todo.task-done)", + { noremap = true, silent = true, desc = "[T]ask [D]one" }) + vim.api.nvim_set_keymap("n", "tu", "(neorg.qol.todo-items.todo.task-undone)", + { noremap = true, silent = true, desc = "[T]ask [U]ndone" }) + vim.api.nvim_set_keymap("n", "tp", "(neorg.qol.todo-items.todo.task-pending)", + { noremap = true, silent = true, desc = "[T]ask [P]ending" }) + vim.api.nvim_set_keymap("n", "th", "(neorg.qol.todo-items.todo.task-on_hold)", + { noremap = true, silent = true, desc = "[T]ask on [H]old" }) + vim.api.nvim_set_keymap("n", "tc", "(neorg.qol.todo-items.todo.task-cancelled)", + { noremap = true, silent = true, desc = "[T]ask on [C]ancelled" }) + vim.api.nvim_set_keymap("n", "tr", "(neorg.qol.todo-items.todo.task-recurring)", + { noremap = true, silent = true, desc = "[T]ask on [R]ecurring" }) + vim.api.nvim_set_keymap("n", "ti", "(neorg.qol.todo-items.todo.task-important)", + { noremap = true, silent = true, desc = "[T]ask on [I]mportant" }) end, }) @@ -44,29 +67,7 @@ vim.api.nvim_set_keymap("n", "nee", ":Neorg export to-file /tmp/neorg-ex { noremap = true, silent = true, desc = "[N]eorg [E]xport Predefined" }) vim.api.nvim_set_keymap("n", "nef", ":Neorg export to-file ", { noremap = true, silent = true, desc = "[N]eorg [E]xport [F]ile" }) -vim.api.nvim_set_keymap("n", "nh", "(neorg.telescope.search_headings)", - { noremap = true, silent = true, desc = "[N]eorg search [H]eading" }) vim.api.nvim_set_keymap("n", "nl", "(neorg.telescope.find_linkable)", { noremap = true, silent = true, desc = "[N]eorg find [L]inkable" }) vim.api.nvim_set_keymap("n", "nf", "(neorg.telescope.find_norg_files)", { noremap = true, silent = true, desc = "[N]eorg find [F]ile" }) -vim.api.nvim_set_keymap("n", "nb", "(neorg.telescope.backlinks.file_backlinks)", - { noremap = true, silent = true, desc = "[N]eorg file [B]acklinks" }) -vim.api.nvim_set_keymap("n", "", "(neorg.telescope.insert_link)", - { noremap = true, silent = true, desc = "Neorg insert [L]ink" }) - --- Tasks -vim.api.nvim_set_keymap("n", "td", "(neorg.qol.todo-items.todo.task-done)", - { noremap = true, silent = true, desc = "[T]ask [D]one" }) -vim.api.nvim_set_keymap("n", "tu", "(neorg.qol.todo-items.todo.task-undone)", - { noremap = true, silent = true, desc = "[T]ask [U]ndone" }) -vim.api.nvim_set_keymap("n", "tp", "(neorg.qol.todo-items.todo.task-pending)", - { noremap = true, silent = true, desc = "[T]ask [P]ending" }) -vim.api.nvim_set_keymap("n", "th", "(neorg.qol.todo-items.todo.task-on_hold)", - { noremap = true, silent = true, desc = "[T]ask on [H]old" }) -vim.api.nvim_set_keymap("n", "tc", "(neorg.qol.todo-items.todo.task-cancelled)", - { noremap = true, silent = true, desc = "[T]ask on [C]ancelled" }) -vim.api.nvim_set_keymap("n", "tr", "(neorg.qol.todo-items.todo.task-recurring)", - { noremap = true, silent = true, desc = "[T]ask on [R]ecurring" }) -vim.api.nvim_set_keymap("n", "ti", "(neorg.qol.todo-items.todo.task-important)", - { noremap = true, silent = true, desc = "[T]ask on [I]mportant" })