mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/rust: fix void-variable flycheck-checkers error
In case flycheck hasn't loaded yet.
This commit is contained in:
@ -28,7 +28,8 @@
|
||||
(remove-hook 'rustic-mode-hook #'flycheck-mode)
|
||||
(remove-hook 'rustic-mode-hook #'flymake-mode-off)
|
||||
(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
|
||||
;; `rustic-mode-local-vars-hook' so file/dir local variables can be used
|
||||
|
Reference in New Issue
Block a user