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

tree-sitter syntax highlight for preview window #5232

Closed
Freed-Wu opened this issue Dec 24, 2024 · 3 comments
Closed

tree-sitter syntax highlight for preview window #5232

Freed-Wu opened this issue Dec 24, 2024 · 3 comments

Comments

@Freed-Wu
Copy link

Is your feature request related to a problem? Please describe.
Screenshot_20241225_003205
preview window doesn't have syntax highlight. Because this filetype only have tree-sitter highlight, not vimSyn.

Describe the solution you'd like
Support tree-sitter

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@Lmills71
Copy link

Lmills71 commented Dec 24, 2024 via email

@fannheyward
Copy link
Member

fannheyward commented Dec 25, 2024

let g:coc_list_preview_filetype = 1

This will make nvim runs setf. If there is tree-sitter for this filetype, the highlighting should work, instead of highlighting by coc.nvim.

@Freed-Wu
Copy link
Author

Why it is not default value? Is there any disadvantage?

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

No branches or pull requests

3 participants