Syntax highlighting for Onyx in Vim and NeoVim.
Use your package manager of choice to include this repository.
Here an example using Plug for Vim.
Plug 'onyx-lang/onyx.vim'
Here an example using Packer for NeoVim.
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
use 'onyx-lang/onyx.vim'
end)
You need to tell Vim/NeoVim to use the onyx
syntax for .onyx
files.
This can be done in the following way.
Vim - .vimrc
augroup onyx_ft
au!
autocmd BufNewFile,BufRead *.onyx set syntax=onyx
augroup END
NeoVim - init.lua
vim.filetype.add {
extension = {
onyx = "onyx",
},
pattern = {
[".*onyx$"] = "onyx",
},
}