Skip to content

Commit

Permalink
feat(keyinds): add keybind for entering link traversal mode (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaw4m4n authored Nov 21, 2023
1 parent 00f9a62 commit 8cf5205
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lua/neorg/modules/core/keybinds/keybinds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,18 @@ module.config.public = {
-- Apply the below keys to all modes
keybinds.map_to_mode("all", {
n = {
{ leader .. "mn", ":Neorg mode norg<CR>", opts = { desc = "Enter Norg Mode" } },
{ leader .. "mn", "<cmd>Neorg mode norg<CR>", opts = { desc = "Enter Norg Mode" } },
{
leader .. "mh",
":Neorg mode traverse-heading<CR>",
"<cmd>Neorg mode traverse-heading<CR>",
opts = { desc = "Enter Heading Traversal Mode" },
},
{ "gO", ":Neorg toc split<CR>", opts = { desc = "Open a Table of Contents" } },
{
leader .. "ml",
"<cmd>Neorg mode traverse-link<CR>",
opts = { desc = "Enter Link Traversal Mode" },
},
{ "gO", "<cmd>Neorg toc split<CR>", opts = { desc = "Open a Table of Contents" } },
},
}, {
silent = true,
Expand Down

0 comments on commit 8cf5205

Please sign in to comment.