fix(language/terraform): disable lsp-mode in terraform files

The terraform language server is not very good, very rarely provides any
completions, and when it doesn't it overall is just slow and laggy.

Especially so as lsp-mode is set to syntax highlight with the language
server, causing syntax highlighting to often be about 5 seconds behind
of whatever you're typing.
This commit is contained in:
2022-07-15 22:46:11 +01:00
parent b411cc7856
commit f8ed1029da

View File

@@ -6,8 +6,8 @@
;;; Code:
(require 'siren-reformatter)
(require 'siren-lsp)
(require 'siren-reformatter)
(require 'siren-tree-sitter)
(use-package terraform-mode
@@ -21,8 +21,7 @@
(defun siren-terraform-mode-setup ()
(setq-local tab-width 2)
(tree-sitter-hl-mode +1)
(terraform-format-on-save-mode 1)
(lsp-deferred))
(terraform-format-on-save-mode 1))
:config
;; This does a better job of injecting formatted content than the default