-
-
Notifications
You must be signed in to change notification settings - Fork 232
Norg Text Objects
github-actions[bot] edited this page Mar 29, 2025
·
10 revisions
- Easily move items up and down in the document
- Provides text objects for headings, tags, and lists
Users can create keybinds for some or all of the different events this module exposes. Those are:
-
core.text-objects.item_up- Moves the current "item" up -
core.text-objects.item_down- same but down core.text-objects.textobject.heading.outercore.text-objects.textobject.heading.innercore.text-objects.textobject.tag.innercore.text-objects.textobject.tag.outer-
core.text-objects.textobject.list.outer- around the entire list
Movable "items" include headings, and list items (ordered/unordered/todo)
Example keybinds that would go in your Neorg configuration:
vim.keymap.set("n", "<up>", "<Plug>(neorg.text-objects.item-up)", {})
vim.keymap.set("n", "<down>", "<Plug>(neorg.text-objects.item-down)", {})
vim.keymap.set({ "o", "x" }, "iH", "<Plug>(neorg.text-objects.textobject.heading.inner)", {})
vim.keymap.set({ "o", "x" }, "aH", "<Plug>(neorg.text-objects.textobject.heading.outer)", {})-
core.integrations.treesitter- A module designed to integrate Treesitter into Neorg.
core.autocommandscore.clipboardcore.clipboard.code-blockscore.completioncore.concealercore.defaultscore.dirmancore.dirman.utilscore.esupports.hopcore.esupports.indentcore.esupports.metagencore.exportcore.export.htmlcore.export.markdowncore.fscore.highlightscore.integrations.coq_nvimcore.integrations.nvim-cmpcore.integrations.nvim-compecore.integrations.treesittercore.iterocore.journalcore.keybindscore.latex.renderercore.looking-glasscore.neorgcmdcore.neorgcmd.commands.returncore.pivotcore.presentercore.promocore.qol.toccore.qol.todo_itemscore.queries.nativecore.scannercore.storagecore.summarycore.syntaxcore.tanglecore.tempuscore.text-objectscore.todo-introspectorcore.uicore.ui.calendar