Fix terraform-ls support

This commit is contained in:
Gabriel Simmer 2023-01-12 15:19:10 +00:00
parent 0556866761
commit c8b062d9be
Signed by: arch
GPG key ID: C81B106D46C5B875

View file

@ -12,6 +12,7 @@
(menu-bar-mode -1)
;; For Emacs 29.
(pixel-scroll-precision-mode t)
(setq create-lockfiles nil)
(load-theme 'modus-vivendi)
@ -138,7 +139,9 @@
;; lsp-mode stuff
(use-package eglot :straight t
:config (add-hook 'go-mode-hook 'eglot-ensure))
:config (add-hook 'go-mode-hook 'eglot-ensure)
(add-hook 'terraform-mode-hook 'eglot-ensure)
(add-to-list 'eglot-server-programs '(terraform-mode . ("terraform-ls" "serve"))))
(use-package company :straight t
:config
(add-hook 'after-init-hook 'global-company-mode)