Skip to content
halonPublic

About

HSL plugin for Vim and Neovim

Topics

Resources

Stars

1 star

Watchers

3 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSL plugin for Vim and Neovim

This plugin adds HSL (Halon Scripting Language) support to Vim and Neovim.

Features

  • Syntax highlighting
  • Indentation
  • Completion
    • Covers the entire standard library
    • Trigger with Ctrl-X Ctrl-O (omni completion)

Installation

Vim

To install the plugin use the following command.

git clone https://github.com/halon/vim-hsl.git ~/.vim/pack/vendor/start/vim-hsl

To enable it add the following to your ~/.vimrc file.

syntax on
filetype plugin indent on

Plugin managers

If you use a plugin manager, add the repository to it instead of cloning it manually. With vim-plug, add the following between call plug#begin() and call plug#end() in your ~/.vimrc file. vim-plug enables syntax highlighting and filetype plugins itself, so the lines above are not needed.

Plug 'halon/vim-hsl'

Upgrade

In order to upgrade the plugin, use the following command.

git -C ~/.vim/pack/vendor/start/vim-hsl pull

If you installed it with a plugin manager, use its update command instead (e.g. :PlugUpdate).

Neovim

To install the plugin use the following command.

git clone https://github.com/halon/vim-hsl.git ~/.local/share/nvim/site/pack/vendor/start/vim-hsl

Neovim enables syntax highlighting and filetype plugins by default, so no extra configuration is needed.

Plugin managers

If you use a plugin manager, add the repository to it instead of cloning it manually. With lazy.nvim, add the following plugin spec.

{ "halon/vim-hsl", ft = "hsl" }

Neovim 0.12 and later also include an (experimental) built-in plugin manager. To use it add the following to your init.lua file.

vim.pack.add({ "https://github.com/halon/vim-hsl" })

Upgrade

In order to upgrade the plugin, use the following command.

git -C ~/.local/share/nvim/site/pack/vendor/start/vim-hsl pull

If you installed it with a plugin manager, use its update command instead (e.g. :Lazy update or :lua vim.pack.update()).

Screenshots

About

HSL plugin for Vim and Neovim

Topics

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages