mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 01:43:10 -05:00
Enable zig-mode/zls
This commit is contained in:
parent
de23ad58bf
commit
0b715d6a2d
2 changed files with 10 additions and 12 deletions
|
@ -34,8 +34,8 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{{ if eq .chezmoi.hostname "helix" -}}
|
{{ if eq .chezmoi.hostname "helix" -}}
|
||||||
xinput set-prop 13 285 1 &
|
xinput set-prop 11 285 1 &
|
||||||
xinput set-prop 13 305 1 &
|
xinput set-prop 11 305 1 &
|
||||||
{{- else if eq .chezmoi.hostname "triangulum" }}
|
{{- else if eq .chezmoi.hostname "triangulum" }}
|
||||||
xinput set-prop 10 306 1 &
|
xinput set-prop 10 306 1 &
|
||||||
{{- else if eq .chezmoi.hostname "hydrus" }}
|
{{- else if eq .chezmoi.hostname "hydrus" }}
|
||||||
|
|
|
@ -756,14 +756,14 @@
|
||||||
|
|
||||||
;; Zig
|
;; Zig
|
||||||
|
|
||||||
;(use-package zig-mode
|
(use-package zig-mode
|
||||||
; :custom (zig-format-on-save nil)
|
:config
|
||||||
; :config
|
(add-to-list 'lsp-language-id-configuration '(zig-mode . "zig"))
|
||||||
; (add-to-list 'lsp-language-id-configuration '(zig-mode . "zig"))
|
(lsp-register-client
|
||||||
; (make-lsp-client
|
(make-lsp-client
|
||||||
; :new-connection (lsp-stdio-connection "/usr/bin/zls")
|
:new-connection (lsp-stdio-connection "/usr/bin/zls")
|
||||||
; :major-modes '(zig-mode)
|
:major-modes '(zig-mode)
|
||||||
; :server-id 'zls))
|
:server-id 'zls)))
|
||||||
|
|
||||||
;; Templating
|
;; Templating
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
|
@ -779,7 +779,5 @@
|
||||||
(tex-mode . yas-minor-mode)
|
(tex-mode . yas-minor-mode)
|
||||||
(latex-mode . yas-minor-mode))
|
(latex-mode . yas-minor-mode))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(use-package yasnippet-snippets)
|
(use-package yasnippet-snippets)
|
||||||
;;; End init.el
|
;;; End init.el
|
||||||
|
|
Loading…
Reference in a new issue