summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/treesitter/_headings.lua
AgeCommit message (Collapse)AuthorFiles
2026-03-13refactor(treesitter)!: get_parser return nil on error #37276nikolightsaber1
2025-10-24fix(outline): use 2-space indent instead of 1-spaceJustin M. Keyes1
2 spaces is more visually distinct at very little cost.
2025-07-08fix(health): floating window closes when opening TOC (gO) #34794glepnir1
Problem: Health check floating window gets closed when pressing 'gO' to show TOC because LSP floating preview system auto-closes on BufEnter events triggered by :lopen. Solution: Temporarily disable BufEnter event for the current window during TOC operations and adjust window layout to prevent overlap.
2025-05-27fix(gO): use non-breaking space #34197altermo1
2025-05-22feat(outline): smaller indentation #34005altermo1
2025-05-03fix(runtime): conceal paths in help, man ToC loclist #33764Michele Campeotto1
Problem: The check for concealing paths in TOCs in the qf syntax file fails because the TOC tile has changed. Solution: Force the qf syntax file to be reloaded after the qf_toc variable has been set, so that the it can apply the correct settings. Using the explicit qf_toc key, already used in the syntax file, instead of the title is less prone to breaking. It was also already being set for man pages but it had no effect because the syntax file had already been loaded when the variable was set. Fixes #33733
2025-03-31fix(treesitter): don't memoize modified headings (#33186)Tan, Long1
Problem: repeated gO in markdown etc. adds extra toc indentation Solution: don't memoize heading table which gets modified
2025-03-19fix(runtime): gO always says "Help TOC" #32971Justin M. Keyes1
Problem: gO always says "Help TOC". Solution: Use a generic title instead.
2025-02-22feat(treesitter): table of contents for checkhealth, markdown (#32282)Christian Clason1
Problem: It's difficult to navigate large structured text files (vim help, checkhealth, Markdown). Solution: Support `gO` for table of contents and `]]`/`[[` for moving between headings for all these filetypes using treesitter queries. Refactor: colorization of highlight groups is moved to the `help` ftplugin while headings-related functionality is implemented in a private `vim.treesitter` module for possible future use for other filetypes.