Skip to content

Is there a way to highlight namespace of a keyword separately? #24

Closed
@Invertisment

Description

@Invertisment

Hey.
I use CIDER in Spacemacs and they do this:
image

How can I achieve that in vim/nvim?
The default behavior in nvim gives me this:
image

When I try to do define my own syntax for highlighting part of a keyword I can't understand how to do it (copied from this project) and I end up highlighting the whole keyword or nothing at all:

syntax match clojureKeywordMine "\v<:{1,2}([^ \n\r\t()\[\]{}";@^`~\\/]+/)*<!>"
highlight clojureKeywordMine ctermbg=darkred

Metadata

Metadata

Assignees

No one assigned

    Labels

    highlightingAffects syntax highlighting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions