rust output panel has no syntax highlighting #365

Closed
opened 2026-03-07 21:09:30 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-03-07 21:09:30 +00:00

Problem

The output/run panel does not apply syntax highlighting for Rust source files. Other languages with treesitter grammars available suffer the same issue if the panel uses a fixed filetype.

Solution

Set the buffer filetype in the output panel to match the current language's extension so treesitter highlighting applies correctly.

## Problem The output/run panel does not apply syntax highlighting for Rust source files. Other languages with treesitter grammars available suffer the same issue if the panel uses a fixed filetype. ## Solution Set the buffer filetype in the output panel to match the current language's extension so treesitter highlighting applies correctly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/cp.nvim#365
No description provided.