nix: enable flycheck
nix syntax checking with nix-instantiate was just merged into flycheck: https://github.com/flycheck/flycheck/pull/1164 This enables flycheck support in nix-mode to the nixos layer.
This commit is contained in:
parent
7c9dcbfba4
commit
0213035784
|
@ -1,6 +1,7 @@
|
|||
(setq nixos-packages
|
||||
'(
|
||||
company
|
||||
flycheck
|
||||
(company-nixos-options :toggle
|
||||
(configuration-layer/package-usedp 'company))
|
||||
(helm-nixos-options :toggle (configuration-layer/package-usedp 'helm))
|
||||
|
@ -32,3 +33,6 @@
|
|||
|
||||
(defun nixos/init-nixos-options ()
|
||||
(use-package nixos-options))
|
||||
|
||||
(defun nixos/post-init-flycheck ()
|
||||
(spacemacs/enable-flycheck 'nix-mode))
|
||||
|
|
Loading…
Reference in New Issue