Syntax highlighting needs to be turned on manually for certain languages #28793
Labels
bug
issues reporting wrong behavior
highlight
needs:repro
We need minimal steps to reproduce the issue
needs:response
waiting for reply from the author
syntax
regex syntax or non-regex parsing, lpeg, grammars
Problem
Syntax highlighting isn't there when I open a file on the command-line. I have to pull it up by
:syntax enable
; after that it works.Steps to reproduce
The syntax highlighting plugin in question is here: https://github.com/vmchale/jacinda-vim
As an example, open a
*.jac
file, e.g.: https://github.com/vmchale/jacinda/blob/main/examples/nmCtx.jacRunning
nvim nmCtx.jac
opens the file but with no syntax highlighting until:syntax enable
. Curiously, runningnvim
following by:edit nmCtx.jac
works.Many other languages do work, e.g. Haskell syntax highlighting, Rust syntax highlighting, but occasionally others fail.
Expected behavior
I would expect syntax highlighting to be on when opening a file from the command-line.
Neovim version (nvim -v)
0.10.0
Vim (not Nvim) behaves the same?
Vim 9.0.639 works correctly, syntax is turned on in my .vimrc
Operating system/version
MacOS 14.5
Terminal name/version
Iterm2
$TERM environment variable
xterm-256color
Installation
Github tarball
The text was updated successfully, but these errors were encountered: