Skip to content

document_symbols: add option to filter by symbol kind #2031

@jensenojs

Description

@jensenojs

When opening a file with many functions and variables mixed together, it's hard to quickly scan for functions.

Telescope already has ignore_symbols, aerial.nvim has filter_kind, VS Code Outline supports right-click filter by type. neo-tree's document_symbols doesn't have this.

Something like Telescope's API would be great:

document_symbols = {
  ignore_symbols = { "Variable", "Field" },
}

Ref: #879 (document_symbols tracking issue)


sth like

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions