Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 880 Bytes

README.md

File metadata and controls

50 lines (36 loc) · 880 Bytes

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