summaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 646840f..b7bd392 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -148,6 +148,13 @@
;; --- LANGUAGE SERVERS ---
(use-package lsp-mode
:hook (typescript-mode . lsp-deferred)
+ :config
+ (add-to-list 'lsp-language-id-configuration '(zig-mode . "zig"))
+ (lsp-register-client
+ (make-lsp-client
+ :new-connection (lsp-stdio-connection "/opt/zls/zls")
+ :major-modes '(zig-mode)
+ :server-id 'zls))
:commands (lsp lsp-deferred))
(use-package lsp-ui
@@ -203,6 +210,7 @@
;; Using tabs in lisp just leads to mixing tabs and spaces, which is yucky
(add-hook 'lisp-mode-hook 'disable-tabs)
(add-hook 'emacs-lisp-mode-hook 'disable-tabs)
+(add-hook 'zig-mode-hook 'disable-tabs)
;; --- GENERAL PREFERENCES ---
(setq-default