Fix terraform devdocs eldoc docs

This commit is contained in:
Jeremy Dormitzer 2024-06-28 13:58:29 -04:00
parent f8c3f76cbd
commit 211904a190
3 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,8 @@
devdocs-lookup
devdocs-install
devdocs-delete
devdocs-update-all)
devdocs-update-all
devdocs-as-string)
:config
(defvar devdocs-entry-aliases nil
"Alist mapping expected DevDocs entry names to their actual names.")

View File

@ -8,7 +8,8 @@
"Returns the devdocs for Terraform resource RESOURCE of type TYPE (\"data\" or \"resource\")as a string."
(devdocs-as-string resource "terraform" type))
(add-to-list 'devdocs-entry-aliases '("aws_alb" . "aws_lb"))
(with-eval-after-load 'devdocs
(add-to-list 'devdocs-entry-aliases '("aws_alb" . "aws_lb")))
(defun terraform-block-metadata-at-pos (pos)
(let* ((parser (treesit-parser-create 'hcl))

View File

@ -109,6 +109,7 @@
(require 'init-xml)
(require 'init-yaml)
(require 'init-groovy)
(require 'init-devdocs)
(require 'init-terraform)
(require 'init-docker)
(require 'init-nix)
@ -122,7 +123,6 @@
(require 'init-epub)
(require 'init-pdf)
(require 'init-homebrew)
(require 'init-devdocs)
(require 'init-elfeed)
(require 'init-1pass)
(require 'init-wallabag)