Skip to content

onyx-lang/onyx.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published