Skip to content

kleis-technology/vim-lcaac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-lcaac

Vim plugin for LCA as Code, providing filetype detection, syntax highlighting, and indentation support for .lca files.

Features

  • Filetype detection — automatically activates for *.lca files
  • 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 settingsgc and commentstring configured for // and /* */ styles

Installation

Plug 'kleis-technology/vim-lcaac'
{ 'kleis-technology/vim-lcaac' }

Manual

Clone the repository into your Vim packages directory:

git clone https://github.com/kleis-technology/vim-lcaac ~/.vim/pack/plugins/start/vim-lcaac

Commands

These 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.csv

License

Affero GPL — see LICENSE.txt.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors