Skip to content

Adding custom queries #234

@ranjithshegde

Description

@ranjithshegde

Discussed in #233

Originally posted by ranjithshegde March 22, 2022
Since setting conceal from treesitter has been merged in core, I have been trying to set my own queries for org bullets like this

(
((stars) @stars (#eq? @stars "*")) @_conceal
(#set! conceal "◉")
)
(
((stars) @stars (#eq? @stars "**")) @_conceal
(#set! conceal "○")
)
(
((stars) @stars (#eq? @stars "***")) @_conceal
(#set! conceal "✸")
)
(
((stars) @stars (#eq? @stars "****")) @_conceal
(#set! conceal "✿")
)

When I append the above snippet to packer/*/orgmode/queries/org/highlights.scm it works perfectly. However when I do it in my ~/.config/nvim/after/queries/org/highlights.scm it does not apply.

according to @kristijanhusak's checking, disabling todo-keyfaces highlight solves this as a workaround for now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions