Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fall back to regex highlighting when treesitter not available #65

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

mikavilpas
Copy link
Owner

@mikavilpas mikavilpas commented Dec 19, 2024

When a result is found for a file whose filetype does not have a
treesitter parser installed, fall back to regex based highlighting that
is bundled in Neovim. This allows highlighting many more file types out
of the box.

See here for the blink side implementation and a mini demo:

Saghen/blink.cmp#650

When a result is found for a file whose filetype does not have a
treesitter parser installed, fall back to regex based highlighting that
is bundled in Neovim. This allows highlighting many more file types out
of the box.

See here for the blink side implementation and a mini demo:

Saghen/blink.cmp#650
@mikavilpas mikavilpas force-pushed the regex-highlighting-fallback-2 branch from 4b50ac6 to f5a58b4 Compare December 20, 2024 20:01
@mikavilpas mikavilpas changed the title WIP: Regex highlighting fallback 2 feat: fall back to regex highlighting when treesitter not available Dec 20, 2024
@mikavilpas mikavilpas merged commit a7bc8fd into main Dec 20, 2024
11 checks passed
@mikavilpas mikavilpas deleted the regex-highlighting-fallback-2 branch December 20, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant