mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user