-
-
Notifications
You must be signed in to change notification settings - Fork 215
Norg Text Objects
github-actions[bot] edited this page Jul 13, 2024
·
6 revisions
WARNING: Requires nvim 0.10+
- 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:
those events are:
-
core.text-objects.item_up
- Moves the current "item" up -
core.text-objects.item_down
- same but down core.text-objects.textobject.heading.outer
core.text-objects.textobject.heading.inner
core.text-objects.textobject.tag.inner
core.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.autocommands
core.clipboard
core.clipboard.code-blocks
core.completion
core.concealer
core.defaults
core.dirman
core.dirman.utils
core.esupports.hop
core.esupports.indent
core.esupports.metagen
core.export
core.export.markdown
core.fs
core.highlights
core.integrations.coq_nvim
core.integrations.nvim-cmp
core.integrations.nvim-compe
core.integrations.treesitter
core.itero
core.journal
core.keybinds
core.latex.renderer
core.looking-glass
core.neorgcmd
core.neorgcmd.commands.return
core.pivot
core.presenter
core.promo
core.qol.toc
core.qol.todo_items
core.queries.native
core.scanner
core.storage
core.summary
core.syntax
core.tangle
core.tempus
core.text-objects
core.todo-introspector
core.ui
core.ui.calendar