Enable zig-mode/zls

This commit is contained in:
Andrew Scott 2023-06-09 15:02:45 -04:00
parent de23ad58bf
commit 0b715d6a2d
Signed by: a
GPG key ID: 7CD5A5977E4931C1
2 changed files with 10 additions and 12 deletions

View file

@ -34,8 +34,8 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
fi
{{ if eq .chezmoi.hostname "helix" -}}
xinput set-prop 13 285 1 &
xinput set-prop 13 305 1 &
xinput set-prop 11 285 1 &
xinput set-prop 11 305 1 &
{{- else if eq .chezmoi.hostname "triangulum" }}
xinput set-prop 10 306 1 &
{{- else if eq .chezmoi.hostname "hydrus" }}

View file

@ -756,14 +756,14 @@
;; Zig
;(use-package zig-mode
; :custom (zig-format-on-save nil)
; :config
; (add-to-list 'lsp-language-id-configuration '(zig-mode . "zig"))
; (make-lsp-client
; :new-connection (lsp-stdio-connection "/usr/bin/zls")
; :major-modes '(zig-mode)
; :server-id 'zls))
(use-package zig-mode
:config
(add-to-list 'lsp-language-id-configuration '(zig-mode . "zig"))
(lsp-register-client
(make-lsp-client
:new-connection (lsp-stdio-connection "/usr/bin/zls")
:major-modes '(zig-mode)
:server-id 'zls)))
;; Templating
(use-package yasnippet
@ -779,7 +779,5 @@
(tex-mode . yas-minor-mode)
(latex-mode . yas-minor-mode))
(use-package yasnippet-snippets)
;;; End init.el