onyx-lang / onyx.vim

Syntax highlighting for (Neo)Vim

Repository from Github https://github.comonyx-lang/onyx.vimRepository from Github https://github.comonyx-lang/onyx.vim

Onyx.vim

Syntax highlighting for Onyx in Vim and NeoVim.

Installation

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)

Configuration

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",
    },
}

About

Syntax highlighting for (Neo)Vim


Languages

Language:Vim Script 100.0%