Skip to content

Neovim treesitter highlighting #207

@IndianBoy42

Description

@IndianBoy42

I have vim regex syntax highlighting turned off since treesitter works for all my use cases very well. This means that there is zero syntax highlighting in the esearch window, which is quite annoying.

Possible solutions:

  1. is there a way to enable vim syntax highlighting only for esearch? can/should this be done automatically from inside this plugin
  2. is it possible to use treesitter for the highlighting? treesitter supports injections so different parts of the file can be highlighted according to their individual languages. but I dont know how well treesitter would work for this incomplete snippets of code, technically its incorrect syntax.
  3. is it possible to get the highlighting groups (which may be treesitter, vim syntax, lsp, etc) from the original buffer. although this assumes the file is open in another buffer, and we probably dont want to open up every file that comes up in the search. (maybe opt-in)

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