-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
highlightsyntaxregex syntax or non-regex parsing, lpeg, grammarsregex syntax or non-regex parsing, lpeg, grammarstreesitter
Description
Describe the bug
When treesitter gets disabled, you end up with no syntax highlighting at all -> :set syntax?
returns syntax=on
rather then e.g. syntax=c
for a C file.
Steps to reproduce
- run
nvim --clean a.c
- check that
:set syntax?
returnssyntax=c
- run
:lua vim.treesitter.stop()
- check that
:set syntax?
returnssyntax=on
Expected behavior
The value of syntax should be restored to the proper syntax for the filetype, e.g. syntax=c
for a C file.
Neovim version (nvim -v)
NVIM v0.8.2
Vim (not Nvim) behaves the same?
n/a
Operating system/version
ArchLinux
Terminal name/version
alacritty with tmux
$TERM environment variable
tmux-256color
Installation
Arch Linux community package
Metadata
Metadata
Assignees
Labels
highlightsyntaxregex syntax or non-regex parsing, lpeg, grammarsregex syntax or non-regex parsing, lpeg, grammarstreesitter