Skip to content

Files

Latest commit

2ca4df7 · Dec 18, 2024

History

History
29 lines (21 loc) · 872 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 872 Bytes

Syntax highlighting for Spicy

This repository contains Vim syntax highlighting for Spicy.

Formatting

This plugin provides integration for automatic source formatting with ALE and spicy-format if they are available. Call :ALEFix to format the current buffer.

To enable formatting on save add the following setting to ~/.vimrc:

let g:ale_fix_on_save = 1

Note that this enables fixing and formatting for any filetypes ALE understands, not just .spicy. Put it into ~/.vim/ftplugin/spicy.vim if that is unwanted.

A different path to the spicy-format binary can be configured in ~/.vimrc like e.g.,

let g:ale_spicy_format_executable = '/PATH/TO/spicy-format'