Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.33 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.33 KB

company-terraform MELPA MELPA Stable

Company backend for terraform files.

asciinema

Features

Autompletes:

  • Arguments and meta-parameters in data and resource blocks
  • Resource type in data and resource declarations
  • Top-level keywords
  • In interpolations:
    • Built-in functions
    • Resource and data types and names, conveniently limited to those existing in your project
    • Resource and data arguments and attributes
    • Variable names
    • Meta-parameters and keywords

Usage

To enable company-terraform, call M-x company-terraform-init, or add

(require 'company-terraform)
(company-terraform-init)

to your init.el.

Completions will appear when both company-mode and terraform-mode are active.

I recommend also enabling company-quickhelp, which conviniently previews documentation string for the selected completion candidate.

company-terraform uses the data provided by the official Terraform documentation.