Vim/Neovim syntax highlighting and editor support for the Hew programming language.
lazy.nvim (Neovim)
{ 'hew-lang/vim-hew' }Plug 'hew-lang/vim-hew'packer.nvim (Neovim)
use 'hew-lang/vim-hew'Copy the contents to your Vim runtime directory:
# Vim
mkdir -p ~/.vim && cp -r syntax ftdetect ftplugin indent ~/.vim/
# Neovim
mkdir -p ~/.config/nvim && cp -r syntax ftdetect ftplugin indent ~/.config/nvim/- Full syntax highlighting (keywords, types, actors, supervisors, strings, numbers, comments, operators, attributes)
- Filetype detection for
.hewfiles - Comment formatting (
//,/* */) - Indentation support (cindent-based)
If you have the hew compiler installed, you can format the current buffer with:
:%!hew fmt %Or add an autocommand to format on save:
autocmd BufWritePre *.hew silent! execute ':%!hew fmt %'Apache-2.0