Vim plugin for LCA as Code, providing filetype detection, syntax highlighting, and indentation support for .lca files.
- Filetype detection — automatically activates for
*.lcafiles - Syntax highlighting — keywords, block headers, builtin functions, types, strings, numbers, operators, and comments (
//and/* */) - Indentation — brace-based auto-indent with 4-space soft tabs
- Comment settings —
gcandcommentstringconfigured for//and/* */styles
Plug 'kleis-technology/vim-lcaac'{ 'kleis-technology/vim-lcaac' }Clone the repository into your Vim packages directory:
git clone https://github.com/kleis-technology/vim-lcaac ~/.vim/pack/plugins/start/vim-lcaacThese commands wrap the lcaac CLI and are available in .lca buffers. Additional flags and options supported by the CLI can be appended directly.
| Command | Description |
|---|---|
:LcaacAssess {name} [opts] |
Returns the unitary impacts of a process in CSV format |
:LcaacTest [name] [opts] |
Runs all tests, or only those matching the given process name |
:LcaacTrace {name} [opts] |
Traces the contributions of a process |
:LcaacVersion |
Prints the lcaac version |
Examples:
:LcaacAssess my_process
:LcaacAssess my_process -l geo="FR" -D x="12 kg"
:LcaacTest
:LcaacTest my_process
:LcaacTrace my_process -f params.csvAffero GPL — see LICENSE.txt.