Skip to content

Vim/Neovim syntax highlighting for the Hew programming language

License

Notifications You must be signed in to change notification settings

hew-lang/vim-hew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-hew

Vim/Neovim syntax highlighting and editor support for the Hew programming language.

Installation

lazy.nvim (Neovim)

{ 'hew-lang/vim-hew' }
Plug 'hew-lang/vim-hew'

packer.nvim (Neovim)

use 'hew-lang/vim-hew'

Manual

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/

Features

  • Full syntax highlighting (keywords, types, actors, supervisors, strings, numbers, comments, operators, attributes)
  • Filetype detection for .hew files
  • Comment formatting (//, /* */)
  • Indentation support (cindent-based)

Formatting

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 %'

License

Apache-2.0

About

Vim/Neovim syntax highlighting for the Hew programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •