Skip to content

Commit

Permalink
refactor!: remove traverse-link and traverse-heading modes
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 13, 2024
1 parent 53429c4 commit da3e062
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/neorg/modules/core/integrations/treesitter/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.private = {
}

module.setup = function()
return { success = true, requires = { "core.highlights", "core.mode" } }
return { success = true, requires = { "core.highlights" } }
end

module.load = function()
Expand Down Expand Up @@ -101,8 +101,6 @@ module.load = function()

module.private.ts_utils = ts_utils

module.required["core.mode"].add_mode("traverse-heading")
module.required["core.mode"].add_mode("traverse-link")
vim.keymap.set("", "<Plug>(neorg.treesitter.next.heading)", lib.wrap(module.public.goto_next_query_match, module.private.heading_query))
vim.keymap.set("", "<Plug>(neorg.treesitter.next.link)", lib.wrap(module.public.goto_next_query_match, module.private.link_query))
vim.keymap.set("", "<Plug>(neorg.treesitter.previous.heading)", lib.wrap(module.public.goto_previous_query_match, module.private.heading_query))
Expand Down

0 comments on commit da3e062

Please sign in to comment.