Skip to content

Conversation

@ficd0
Copy link

@ficd0 ficd0 commented Dec 7, 2025

Added config option code_action.toc.include which is a list of integers. This is
the new default:

[code_action]
# Enable/disable "Table of Contents" code action
toc.enable = true
# Heading levels to include when generating a Table of Contents
toc.include = [1, 2, 3, 4, 5, 6]

These are the heading levels that will be included when generating a Table of
Contents. Keeping the default setting results in identical behavior to before.
However, changing the array allows us to exclude certain levels from the TOC.

I updated tests accordingly. This PR partially implements #91.

Asciicast demo available:

asciicast

Added config option code_action.toc.include which is a list of integers.
These are the heading levels that will be included when generating a
Table of Contents. Updated tests accordingly. Partially implements artempyanykh#91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant