From ca739bac8089cc108269f76a207f741812c8fb4b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 6 Aug 2024 18:52:45 +0100 Subject: [PATCH] feat(language/terraform): re-enable lsp-mode, seems more stable now --- modules/languages/siren-terraform.el | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/modules/languages/siren-terraform.el b/modules/languages/siren-terraform.el index 5e8b546a..6a7d2e75 100644 --- a/modules/languages/siren-terraform.el +++ b/modules/languages/siren-terraform.el @@ -18,8 +18,7 @@ :preface (defun siren-terraform-mode-setup () - (setq-local tab-width 2) - (terraform-format-on-save-mode t)) + (setq-local tab-width 2)) :config ;; This does a better job of injecting formatted content than the default @@ -36,18 +35,13 @@ :preface (defun siren-lsp-terraform-mode-setup () - ;; TODO: Re-evaluate lsp-mode for Terraform at some point in the future. - ;; Currently it mostly just gets in the way and causes enough annoyance that - ;; it's not worth using by default. - ;; Disable semantic tokens as it typically causes an annoying delay with the ;; syntax highlighting as you type. Essentially all new text is a very faded ;; out grey color for the first 1-2 seconds as you type. - ;; (setq-local lsp-semantic-tokens-enable nil) + (setq-local lsp-semantic-tokens-enable nil) - ;; (lsp-format-buffer-on-save-mode t) - ;; (lsp-deferred) - )) + (lsp-format-buffer-on-save-mode t) + (lsp-deferred))) (use-package terraform-doc :defer t)