Adds full syntax highlighting, JS‑region embedding, and basic filetype detection for _hyperscript.
Using native pack/*/start
(Vim 8 / Neovim)
git clone https://github.com/AnswerDotAI/hyperscript-vim \
~/.config/nvim/pack/plugins/start/hyperscript-vim # or ~/.vim/pack/…
Restart Vim (or run :helptags ALL
).
With plugin managers
-
vim‑plug
Plug 'AnswerDotAI/hyperscript-vim'
-
lazy.nvim
{ 'AnswerDotAI/hyperscript-vim', ft = '_hyperscript' }
-
packer
use { 'AnswerDotAI/hyperscript-vim', ft = '_hyperscript' }
Files ending in ._hs
, .hyperscript
or .hyper
are recognized automatically.
If you embed _hyperscript
within <script type="text/hyperscript">
tags in HTML, consider vim‑html’s heredoc rules or using Treesitter
instead.
MIT