From 6c0ed6d4685495377729128cbf211769519fee48 Mon Sep 17 00:00:00 2001 From: John Doty Date: Wed, 17 Mar 2021 13:16:46 -0700 Subject: [PATCH] Zig --- .emacs.d/init.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 4c832b0..7235660 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -920,5 +920,18 @@ ;; (necessary to find 'hphpd' for instance) (add-to-list 'tramp-remote-path 'tramp-own-remote-path) +;; ================================================================ +;; Zig +;; ================================================================ +(use-package zig-mode :ensure + :mode (("\\.zig\\'" . zig-mode)) + :config + (require 'lsp) ;; There's a use-package somewhere else...? + (add-to-list 'lsp-language-id-configuration '(zig-mode . "zig")) + (lsp-register-client + (make-lsp-client + :new-connection (lsp-stdio-connection "") + :major-modes '(zig-mode) + :server-id 'zls))) ;;; init.el ends here