Skip to content

How to import a single highlight ? #92

Description

@teto

hi,

This may be more of a support question than a bug but here is my scenario:
I have cursorline enabled but my current hardcoded color for "CursorLine" is too close to "Normal", i.e. hardly visible. So I want to set the CursorLine guibg to a lighter "Normal".

To rephrase it, I would like to import the "Normal" highlight and assign it with a lighter guibg to CursorLine. I've looked at lush's code and lua/lush/importer.lua seems to contain the code I want to use but it just exports capture_current. I would like to access a "import_highlight("Normal")" that loads the current "Normal" highlight and transforms it into a lush value so that I can apply lush functions on it.

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