Skip to content

Commit

Permalink
fix: make core.promo keybinds functional again
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 13, 2024
1 parent 94b860b commit 8a48172
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lua/neorg/modules/core/keybinds/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ module.private = {
},

v = {
{ ">", "<Plug>(neorg.promo.promote-range)", opts = { desc = "[neorg] Promote Objects in Range" } },
{ "<", "<Plug>(neorg.promo.demote-range)", opts = { desc = "[neorg] Demote Objects in Range" } },
{ ">", "<Plug>(neorg.promo.promote.range)", opts = { desc = "[neorg] Promote Objects in Range" } },
{ "<", "<Plug>(neorg.promo.demote.range)", opts = { desc = "[neorg] Demote Objects in Range" } },
},
},
},
Expand Down
12 changes: 6 additions & 6 deletions lua/neorg/modules/core/promo/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ end
module.load = function()
---@type core.esupports.indent
indent = module.required["core.esupports.indent"]
vim.keymap.set("", "<Plug>(neorg.promo.promote)", module.public.promote)
vim.keymap.set("", "<Plug>(neorg.promo.promote.nested)", module.public.promote_nested)
vim.keymap.set("", "<Plug>(neorg.promo.promote.range)", module.public.promote_range)
vim.keymap.set("", "<Plug>(neorg.promo.demote)", module.public.demote)
vim.keymap.set("", "<Plug>(neorg.promo.demote.nested)", module.public.demote_nested)
vim.keymap.set("", "<Plug>(neorg.promo.demote.range)", module.public.demote_range)
vim.keymap.set({ "n", "i" }, "<Plug>(neorg.promo.promote)", module.public.promote)
vim.keymap.set({ "n", "i" }, "<Plug>(neorg.promo.promote.nested)", module.public.promote_nested)
vim.keymap.set({ "n", "i", "v" }, "<Plug>(neorg.promo.promote.range)", module.public.promote_range)
vim.keymap.set({ "n", "i" }, "<Plug>(neorg.promo.demote)", module.public.demote)
vim.keymap.set({ "n", "i" }, "<Plug>(neorg.promo.demote.nested)", module.public.demote_nested)
vim.keymap.set({ "n", "i", "v" }, "<Plug>(neorg.promo.demote.range)", module.public.demote_range)
end

module.private = {
Expand Down

0 comments on commit 8a48172

Please sign in to comment.