Language server and vim plugin for sublime-syntax and syntax-test's scope names.
sublime-syntax is a subtype of yaml. See json schema to get support of yaml language server.
- document hover
- completion
- diagnostic: requires syntest
For vim plugin:
- ftplugin: commentstring, etc
- compilers: bat, syntest
- syntax highlight, include incorrect header
Install
git clone --depth=1 https://github.com/trishume/syntect
cd syntect
cargo build --release --example syntest
sudo install -D target/release/examples/syntest -t /usr/local/bin
yay -S syntest
Every syntax test file should have a correct header. If you input a typo, syntax highlight will tell you:
If you input correct keyword of sublime syntax file, it will be highlighted as Keyword
.
Note watch
should be match
and strings
should be string
:
You can use branch release to avoid downloading unnecessary files for vim plugin. Such as for dein.vim:
call dein#add('Freed-Wu/sublime-syntax-language-server', {
\ 'rev': 'release',
\ })