mirror of
https://github.com/juxt/allium.git
synced 2026-09-14 13:56:44 +08:00
be4abafc9f
Closes #30
JetBrains integration
Validate .allium files on save using the built-in File Watchers plugin.
Prerequisites
- The
alliumCLI on your PATH - The File Watchers plugin enabled (bundled with IntelliJ IDEA, WebStorm, PyCharm, CLion, and others)
Setup
- Open Settings > Tools > File Watchers
- Click the Import button (arrow icon in the toolbar)
- Select
watchers.xmlfrom this directory - Click OK
The watcher runs allium check on every .allium file when it changes. Errors appear in the IDE's console and are highlighted by the "File Watcher problems" inspection.
Manual setup
If you prefer to configure it by hand:
- Open Settings > Tools > File Watchers
- Click + and choose Custom
- Set File type to your registered type for
.alliumfiles (or create one under Settings > Editor > File Types) - Set Program to
allium - Set Arguments to
check $FilePath$ - Set Working directory to
$ProjectFileDir$ - Uncheck Auto-save edited files to trigger the watcher if you only want it to run on explicit save