Skip to content

Allow EnableHLXYZ / DisableHLXYZ to work buffer-locally #168

@hinell

Description

@hinell

Is your feature request related to a problem? Please describe.
Currently the EnableHLXYZ / DisableHLXYZ commands enable/disable hlchunk globally. No way to disable/enable hlchunk per given buffer.

Describe the solution you'd like
Expose an API that would allow disabling/enabling hlchunk per buffer. E.g.:

require("hlchunk").disable({ bufnr = bunfr }) -- disable every mod of hlchunk
require("hlchunk.mods.chunk").disable({ bufnr = bunfr }) 
require("hlchunk.mods.indent").disable({ bufnr = bunfr }) 
require("hlchunk.line_num.indent").disable({ bufnr = bunfr }) 

Describe alternatives you've considered
There are no alternatives. Docs say nothing on that.

Additional context
In big files it's desirable to turn off highlighting and various plugins in associated buffers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions