feat(terraform): eglot: use tofu-ls if present

This should be upstreamed.

Ref: doomemacs/community#17
This commit is contained in:
Henrik Lissner
2025-09-24 14:04:08 -04:00
parent e32f39f5e3
commit 395a058d7d

View File

@@ -14,6 +14,7 @@
(setq-hook! 'terraform-mode-hook compile-command +terraform-runner)
(when (modulep! +lsp)
(set-eglot-client! 'terraform-mode '("tofu-ls" "serve") '("terraform-ls" "serve"))
(add-hook 'terraform-mode-local-vars-hook #'lsp! 'append))
(map! :map terraform-mode-map