doomemacs/modules/tools/terraform
Henrik Lissner 2da91f9e47
Merge pull request #2099 from danlamanna/add-terraform-doctor
tools/terraform: add doctor dependency check
2019-11-21 16:14:09 -05:00
..
config.el 💥 Rename def-package! -> use-package! 2019-07-23 12:50:45 +02:00
doctor.el tools/terraform: add doctor dependency check 2019-11-21 16:10:43 -05:00
packages.el tools/terraform: use map!'s :after 2018-10-16 02:49:21 -04:00
README.org tools/terraform: add readme file 2019-11-21 15:04:04 -05:00

tools/terraform

Description

This module adds support for working with Terraform files in Doom Emacs. This includes syntax highlighting, intelligent code completion, and the ability to run Terraform commands directly from Emacs.

Module Flags

This module provides no flags.

Prerequisites

The terraform executable must be installed and accessible from your PATH.

Features

Syntax highlighting

Syntax highlighting is provided from terraform-mode and hcl-mode.

Code formatting

:tools terraform does not provide code formatting directly, but :editor format works with Terraform files.

Code navigation

Code navigation is supported through imenu from terraform-mode.

Code completion

Code completion of Terraform builtins is provided from company-terraform and generally works well despite being generated through a static (outdated) file.

company-terraform also provides code completion of resources within your project.

Documentation

Documentation is accessible through the normal company-mode show documentation functionality, thanks to company-terraform.

Executing Terraform commands

:tools terraform provides commands under the localleader to run the most common Terraform operations (see Keybindings below).

Appendix

Keybindings

:localleader

key description
i Run terraform init
p Run terraform plan
a Run terraform apply