mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(format): add :lang zig formatter
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
:hook (zig-mode . rainbow-delimiters-mode)
|
||||
:config
|
||||
(setq zig-format-on-save nil) ; rely on :editor format instead
|
||||
(set-formatter! 'zigfmt '("zig" "fmt" "--stdin") :modes '(zig-mode))
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(add-hook 'zig-mode-local-vars-hook #'lsp! 'append))
|
||||
|
@ -10,7 +10,10 @@
|
||||
"This module requires (:tools tree-sitter)")
|
||||
|
||||
(unless (executable-find "zig")
|
||||
(warn! "Couldn't find zig binary"))
|
||||
(warn! "Couldn't find zig binary")
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(warn! "Formatting will be disabled")))
|
||||
|
||||
(when (modulep! +lsp)
|
||||
(unless (executable-find "zls")
|
||||
|
Reference in New Issue
Block a user