Shift (when (featurep! +lsp)) expression outside of use-package

This commit is contained in:
Benjamin Tan 2021-04-05 22:43:33 +08:00
parent b90751bafb
commit 66569e4d88
No known key found for this signature in database
GPG key ID: A853F0716C413825

View file

@ -12,8 +12,6 @@
:config
;; Disable zig-mode's default format on save behaviour.
(setq zig-format-on-save nil)
(when (featurep! +lsp)
(add-hook 'zig-mode-local-vars-hook #'lsp!))
(map! :localleader
:map zig-mode-map
"b" #'zig-compile
@ -21,6 +19,9 @@
"r" #'zig-run
"t" #'zig-test-buffer))
(when (featurep! +lsp)
(add-hook 'zig-mode-local-vars-hook #'lsp!))
(when (featurep! :checkers syntax)
(flycheck-define-checker zig
"A zig syntax checker using the zig-fmt interpreter."