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:
William Casarin 2017-04-19 12:09:55 -07:00 committed by syl20bnr
parent 7c9dcbfba4
commit 0213035784
1 changed files with 4 additions and 0 deletions

View File

@ -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))