krzysztof-magosa/company-ansible@8d1ffbc -> krzysztof-magosa/company-ansible@79dd421 realgud/realgud@2cca776 -> realgud/realgud@94f2835 emacs-lsp/dap-mode@d10e254 -> emacs-lsp/dap-mode@e2086fc wbolster/emacs-direnv@1f93e3f -> wbolster/emacs-direnv@1daf479 Silex/docker.el@baba7f7 -> Silex/docker.el@a2092b3 editorconfig/editorconfig-emacs@5c67d22 -> editorconfig/editorconfig-emacs@19de0ec millejoh/emacs-ipython-notebook@b265205 -> millejoh/emacs-ipython-notebook@57e84c6 syohex/emacs-quickrun@55bbe5d -> syohex/emacs-quickrun@50e07e7 jacktasia/dumb-jump@b5185e3 -> jacktasia/dumb-jump@e8e9b0c magit/magit@55c5c7c -> magit/magit@68b5a13 magit/forge@c2fbce6 -> magit/forge@2e2d26c alphapapa/magit-todos@ad5663a -> alphapapa/magit-todos@a0e5d1f charignon/github-review@3fb7cc2 -> charignon/github-review@50c6bcc syohex/emacs-terraform-mode@6973d1a -> syohex/emacs-terraform-mode@2967e7b
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 |