lang/terraform: Set docsets for terraform-mode (#4546)

* lang/terraform: Set docset for terraform-mode

* Lazy load terraform-mode

Co-authored-by: Henrik Lissner <accounts@v0.io>
This commit is contained in:
Seong Yong-ju 2021-02-27 11:48:49 +09:00 committed by GitHub
parent b3753da45a
commit b71b128398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,12 +4,14 @@
(add-hook 'terraform-mode-local-vars-hook #'lsp!))
(map! :after terraform-mode
:map terraform-mode-map
:localleader
:desc "terraform apply" "a" (cmd! (compile "terraform apply" t))
:desc "terraform init" "i" (cmd! (compile "terraform init"))
:desc "terraform plan" "p" (cmd! (compile "terraform plan")))
(after! terraform-mode
(set-docsets! 'terraform-mode "Terraform")
(map! :map terraform-mode-map
:localleader
:desc "terraform apply" "a" (cmd! (compile "terraform apply" t))
:desc "terraform init" "i" (cmd! (compile "terraform init"))
:desc "terraform plan" "p" (cmd! (compile "terraform plan"))))
(use-package! company-terraform