Shift (when (featurep! +lsp))
expression outside of use-package
This commit is contained in:
parent
b90751bafb
commit
66569e4d88
1 changed files with 3 additions and 2 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue