nvim_runtime_lua

vim.treesitter._headings

Treesitter-based navigation functions for headings

Methods2

function M.show_toc(qf_height: nil | integer) -> nil
Parameters
qf_heightnil | integer

height of loclist window Shows an Outline (table of contents) of the current buffer, in the loclist.

Returns
nil
function M.jump(opts: table) -> nil

Jump to section

Parameters
optstable

jump options

  • count integer direction to jump (>0 forward, <0 backward)
  • level integer only consider headings up to level
  • todo(clason): support count

Returns
nil