lang/rust: fix void-variable flycheck-checkers error
In case flycheck hasn't loaded yet.
This commit is contained in:
parent
b80b338b3c
commit
eaa32572b9
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@
|
||||||
(remove-hook 'rustic-mode-hook #'flycheck-mode)
|
(remove-hook 'rustic-mode-hook #'flycheck-mode)
|
||||||
(remove-hook 'rustic-mode-hook #'flymake-mode-off)
|
(remove-hook 'rustic-mode-hook #'flymake-mode-off)
|
||||||
(unless (featurep! +lsp)
|
(unless (featurep! +lsp)
|
||||||
(add-to-list 'flycheck-checkers 'rustic-clippy))
|
(after! flycheck
|
||||||
|
(add-to-list 'flycheck-checkers 'rustic-clippy)))
|
||||||
|
|
||||||
;; HACK `rustic-lsp' sets up lsp-mode/eglot too early. We move it to
|
;; HACK `rustic-lsp' sets up lsp-mode/eglot too early. We move it to
|
||||||
;; `rustic-mode-local-vars-hook' so file/dir local variables can be used
|
;; `rustic-mode-local-vars-hook' so file/dir local variables can be used
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue