tweak(syntax): feat gate flycheck in all modules
This commit is contained in:
parent
b957142e3e
commit
4696f0d4ce
40 changed files with 86 additions and 45 deletions
|
@ -18,7 +18,8 @@
|
|||
(when (modulep! +tree-sitter)
|
||||
(add-hook 'zig-mode-local-vars-hook #'tree-sitter! 'append))
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(flycheck-define-checker zig
|
||||
"A zig syntax checker using zig's `ast-check` command."
|
||||
:command ("zig" "ast-check" (eval (buffer-file-name)))
|
||||
|
@ -26,7 +27,7 @@
|
|||
((error line-start (file-name) ":" line ":" column ": error: " (message) line-end))
|
||||
:modes zig-mode)
|
||||
(add-to-list 'flycheck-checkers 'zig))
|
||||
|
||||
|
||||
(map! :localleader
|
||||
:map zig-mode-map
|
||||
"b" #'zig-compile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue