DamienCassou/auth-password-store@ff4940c -> DamienCassou/auth-password-store@aa7f171 alphapapa/magit-todos@a0e5d1f -> alphapapa/magit-todos@78d24cf charignon/github-review@e2123cc -> charignon/github-review@db72374 editorconfig/editorconfig-emacs@a6c70da -> editorconfig/editorconfig-emacs@da84471 emacs-lsp/lsp-mode@57ea180 -> emacs-lsp/lsp-mode@5005ebe emacs-straight/project@da0333a -> emacs-straight/project@162d892 emacsorphanage/quickrun@005d269 -> emacsorphanage/quickrun@fd96577 emacsorphanage/terraform-mode@2967e7b -> emacsorphanage/terraform-mode@63fafc6 jacktasia/dumb-jump@fbbe6b0 -> jacktasia/dumb-jump@85f898e magit/forge@031e4f0 -> magit/forge@05ef029 magit/magit@2fb3bf7 -> magit/magit@068f838 millejoh/emacs-ipython-notebook@1bfb80c -> millejoh/emacs-ipython-notebook@a019ee3 thiderman/makefile-executor.el@9a7d78f -> thiderman/makefile-executor.el@d0a34c3 tkf/emacs-request@d02d134 -> tkf/emacs-request@0183da8 yoshiki/yaml-mode@68fecb5 -> yoshiki/yaml-mode@fc5e1c5 zx2c4/password-store@06f4999 -> zx2c4/password-store@f152064
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.
Plugins
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 |