mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
nit(terraform): reformat
To match the formatting of other Doom modules.
This commit is contained in:
@ -3,14 +3,19 @@
|
||||
(defvar +terraform-runner (if (executable-find "terragrunt") "terragrunt" "terraform")
|
||||
"The default runner - terraform or terragrunt")
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'terraform-mode-local-vars-hook #'lsp! 'append))
|
||||
|
||||
(after! terraform-mode
|
||||
;;
|
||||
;;; Packages
|
||||
|
||||
(use-package! terraform-mode
|
||||
:defer t
|
||||
:config
|
||||
(set-docsets! 'terraform-mode "Terraform")
|
||||
|
||||
(setq-hook! 'terraform-mode-hook compile-command +terraform-runner)
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'terraform-mode-local-vars-hook #'lsp! 'append))
|
||||
|
||||
(map! :map terraform-mode-map
|
||||
:localleader
|
||||
:desc "apply" "a" (cmd! (compile (format "%s apply" +terraform-runner) t))
|
||||
@ -20,6 +25,7 @@
|
||||
:desc "fmt" "f" (cmd! (compile (format "%s fmt" +terraform-runner)))
|
||||
:desc "destroy" "d" (cmd! (compile (format "%s destroy" +terraform-runner)))))
|
||||
|
||||
|
||||
(use-package! company-terraform
|
||||
:when (modulep! :completion company)
|
||||
:after terraform-mode
|
||||
|
Reference in New Issue
Block a user