tweak(syntax): feat gate flycheck in all modules
This commit is contained in:
parent
b957142e3e
commit
4696f0d4ce
40 changed files with 86 additions and 45 deletions
|
@ -229,7 +229,8 @@ orderless."
|
|||
(add-to-list 'consult-dir-sources 'consult-dir--source-tramp-local t))
|
||||
|
||||
(use-package! consult-flycheck
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after (consult flycheck))
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
|
||||
(package! consult :pin "fe49dedd71802ff97be7b89f1ec4bd61b98c2b13")
|
||||
(package! consult-dir :pin "ed8f0874d26f10f5c5b181ab9f2cf4107df8a0eb")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! consult-flycheck :pin "3f2a7c17cc2fe64e0c07e3bf90e33c885c0d7062"))
|
||||
(package! embark :pin "9a44418c349e41020cdc5ad1bd21e8c77a429062")
|
||||
(package! embark-consult :pin "9a44418c349e41020cdc5ad1bd21e8c77a429062")
|
||||
|
|
|
@ -35,7 +35,7 @@ This is ignored by ccls.")
|
|||
(use-package! cc-mode
|
||||
:mode ("\\.mm\\'" . objc-mode)
|
||||
;; Use `c-mode'/`c++-mode'/`objc-mode' depending on heuristics
|
||||
:mode ("\\.h\\'" . +cc-c-c++-objc-mode)
|
||||
:mode ("\\.h\\'" . +cc-c-c++-objc-mode)
|
||||
;; Ensure find-file-at-point recognize system libraries in C modes. It must be
|
||||
;; set up before the likes of irony/lsp are initialized. Also, we use
|
||||
;; local-vars hooks to ensure these only run in their respective major modes,
|
||||
|
@ -146,7 +146,8 @@ This is ignored by ccls.")
|
|||
:hook (irony-mode . irony-eldoc))
|
||||
|
||||
(use-package! flycheck-irony
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:config (flycheck-irony-setup))
|
||||
|
||||
(use-package! company-irony
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
(package! ccls :pin "29d231590fad39b4d658d9262859e60669edb9b0"))
|
||||
(when (package! irony :pin "870d1576fb279bb93f776a71e65f45283c423a9e")
|
||||
(package! irony-eldoc :pin "73e79a89fad982a2ba072f2fcc1b4e41f0aa2978")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-irony :pin "42dbecd4a865cabeb301193bb4d660e26ae3befe"))
|
||||
(when (modulep! :completion company)
|
||||
(package! company-irony :pin "b44711dfce445610c1ffaec4951c6ff3882b216a")
|
||||
|
|
|
@ -271,6 +271,7 @@
|
|||
;; clojure-lsp already uses clj-kondo under the hood
|
||||
(use-package! flycheck-clj-kondo
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake))
|
||||
(not (modulep! +lsp)))
|
||||
:after flycheck)
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
(package! clojure-mode :pin "3453cd229b412227aaffd1dc2870fa8fa213c5b1")
|
||||
(package! clj-refactor :pin "b5abe655e572a6ecfed02bb8164b64716ef76b8e")
|
||||
(package! cider :pin "1ed5163433c991c00ea83fdd4447e8daf4aeccbe")
|
||||
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-clj-kondo :pin "ff7bed2315755cfe02ef471edf522e27b78cd5ca"))
|
||||
|
|
|
@ -16,12 +16,14 @@
|
|||
|
||||
|
||||
(use-package! flycheck-crystal
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after crystal-mode)
|
||||
|
||||
|
||||
(use-package! flycheck-ameba
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after crystal-mode
|
||||
:config (flycheck-ameba-setup))
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
(package! crystal-mode :pin "9bfb9f0f566e937cc6a2f2913d1b56978b81dc99")
|
||||
(package! inf-crystal :pin "02007b2a2a3bea44902d7c83c4acba1e39d278e3")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-crystal :pin "9bfb9f0f566e937cc6a2f2913d1b56978b81dc99")
|
||||
(package! flycheck-ameba :pin "0c4925ae0e998818326adcb47ed27ddf9761c7dc"))
|
||||
|
|
|
@ -51,7 +51,8 @@
|
|||
|
||||
|
||||
(use-package! flycheck-credo
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after elixir-mode
|
||||
:config (flycheck-credo-setup))
|
||||
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
;; +elixir.el
|
||||
(package! elixir-mode :pin "7641373f0563cab67cc5459c34534a8176b5e676")
|
||||
(package! exunit :pin "e0a8c2b81f3d53885ed753b911b3cb6ee9229bec")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-credo :pin "e88f11ead53805c361ec7706e44c3dfee1daa19f"))
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
:desc "Compile JS (optimized)" "J" #'+elm/compile-js-optimized)))
|
||||
|
||||
(use-package! flycheck-elm
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after elm-mode
|
||||
:config (add-to-list 'flycheck-checkers 'elm))
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
;;; lang/elm/packages.el
|
||||
|
||||
(package! elm-mode :pin "5797500d74dd8544a89938c09d3cd5cdf7b5d7bc")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-elm :pin "1b60050efd4729bfba548f3e5adbcb58436667cb"))
|
||||
|
|
|
@ -190,7 +190,8 @@ See `+emacs-lisp-non-package-mode' for details.")
|
|||
|
||||
|
||||
(use-package! flycheck-cask
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:defer t
|
||||
:init
|
||||
(add-hook! 'emacs-lisp-mode-hook
|
||||
|
@ -198,7 +199,8 @@ See `+emacs-lisp-non-package-mode' for details.")
|
|||
|
||||
|
||||
(use-package! flycheck-package
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after flycheck
|
||||
:config (flycheck-package-setup))
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
(package! overseer :pin "02d49f582e80e36b4334c9187801c5ecfb027789")
|
||||
(package! elisp-def :pin "1d2e88a232ec16bce036b49577c4d4d96035f9f7")
|
||||
(package! elisp-demos :pin "792be709c82101aea0585ece7429e2fdded74494")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-package :pin "3a6aaed29ff61418c48c0251e1432c30748ae739")
|
||||
(package! flycheck-cask :pin "4b2ede6362ded4a45678dfbef1876faa42edbd58"))
|
||||
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
(add-to-list 'auto-mode-alist '("\\.jl\\'" . ess-julia-mode)))
|
||||
:config
|
||||
(setq ess-offset-continued 'straight
|
||||
ess-use-flymake (not (modulep! :checkers syntax))
|
||||
ess-use-flymake (or (not (modulep! :checkers syntax))
|
||||
(modulep! :checkers syntax +flymake))
|
||||
ess-nuke-trailing-whitespace-p t
|
||||
ess-style 'DEFAULT
|
||||
ess-history-directory (expand-file-name "ess-history/" doom-cache-dir))
|
||||
|
@ -104,6 +105,7 @@
|
|||
:hook (stan-mode . company-stan-setup))
|
||||
|
||||
(use-package! flycheck-stan
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:hook (stan-mode . flycheck-stan-stanc2-setup)
|
||||
:hook (stan-mode . flycheck-stan-stanc3-setup)))
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
(package! eldoc-stan :pin "150bbbe5fd3ad2b5a3dbfba9d291e66eeea1a581")
|
||||
(when (modulep! :completion company)
|
||||
(package! company-stan :pin "150bbbe5fd3ad2b5a3dbfba9d291e66eeea1a581"))
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-stan :pin "150bbbe5fd3ad2b5a3dbfba9d291e66eeea1a581")))
|
||||
|
|
|
@ -78,5 +78,6 @@
|
|||
(setq company-go-show-annotation t))
|
||||
|
||||
(use-package! flycheck-golangci-lint
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:hook (go-mode . flycheck-golangci-lint-setup))
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
(when (modulep! :completion company)
|
||||
(package! company-go :pin "31948b463f2fc18f8801e5a8fe511fef300eb3dd"))
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-golangci-lint :pin "8e446c68311048f0b87febf8ef0379e29d358851"))
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
:init
|
||||
(setq meghanada-server-install-dir (concat doom-data-dir "meghanada-server/")
|
||||
meghanada-use-company (modulep! :completion company)
|
||||
meghanada-use-flycheck (modulep! :checkers syntax)
|
||||
meghanada-use-flycheck (or (modulep! :checkers syntax +flymake)
|
||||
(not (modulep! :checkers syntax)))
|
||||
meghanada-use-eldoc t
|
||||
meghanada-use-auto-start t)
|
||||
|
||||
|
|
|
@ -106,7 +106,8 @@
|
|||
#'typescript-tsx-mode
|
||||
#'typescript-mode)))
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(after! flycheck
|
||||
(flycheck-add-mode 'javascript-eslint 'web-mode)
|
||||
(flycheck-add-mode 'javascript-eslint 'typescript-mode)
|
||||
|
|
|
@ -15,5 +15,6 @@
|
|||
|
||||
|
||||
(use-package! flycheck-kotlin
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:hook (kotlin-mode . flycheck-kotlin-setup))
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
|
||||
(package! kotlin-mode :pin "fddd747e5b4736e8b27a147960f369b86179ddff")
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-kotlin :pin "a2a6abb9a7f85c6fb15ce327459ec3c8ff780188"))
|
||||
|
|
|
@ -38,7 +38,8 @@
|
|||
|
||||
|
||||
(use-package! flycheck-ledger
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after ledger-mode)
|
||||
|
||||
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
(when (modulep! :editor evil)
|
||||
(package! evil-ledger :pin "7a9f9f5d39c42fffdba8004f8982642351f2b233"))
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-ledger :pin "628e25ba66604946085571652a94a54f4d1ad96f"))
|
||||
|
|
|
@ -56,7 +56,8 @@ lua-language-server.")
|
|||
(add-hook! 'moonscript-mode-hook
|
||||
#'+lua-moonscript-fix-single-quotes-h
|
||||
#'+lua-moonscript-fontify-interpolation-h)
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(require 'flycheck-moonscript nil t)))
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
(when (modulep! +moonscript)
|
||||
(package! moonscript :pin "56f90471e2ced2b0a177aed4d8c2f854797e9cc7")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-moonscript
|
||||
:recipe (:host github :repo "hlissner/emacs-flycheck-moonscript")
|
||||
:pin "fcb99e5efcf31db05f236f02eaa575986a57172d")))
|
||||
|
|
|
@ -34,6 +34,6 @@ windows."
|
|||
|
||||
|
||||
(use-package! flycheck-nim
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after nim-mode)
|
||||
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
|
||||
(package! nim-mode :pin "744e076f0bea1c5ddc49f92397d9aa98ffa7eff8")
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-nim :pin "ddfade51001571c2399f78bcc509e0aa8eb752a4"))
|
||||
|
|
|
@ -64,7 +64,9 @@
|
|||
"t" #'merlin-type-enclosing)
|
||||
|
||||
(use-package! flycheck-ocaml
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
|
||||
:hook (merlin-mode . +ocaml-init-flycheck-h)
|
||||
:config
|
||||
(defun +ocaml-init-flycheck-h ()
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
(package! merlin :pin "306af713e268d810ea0dc80bdf8e98265f96bd51")
|
||||
(package! merlin-eldoc :pin "bf8edc63d85b35e4def352fa7ce4ea39f43e1fd8")
|
||||
(package! merlin-company :pin "306af713e268d810ea0dc80bdf8e98265f96bd51")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-ocaml :pin "77f8ddbd9bfc3a11957ac7ec7e45d5fa9179b192")))
|
||||
|
||||
(package! ocp-indent :pin "7c4d434132cebc15a8213c8be9e7323692eb0a2b")
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
:hook (purescript-mode . psc-ide-mode)
|
||||
:config
|
||||
(remove-hook 'company-backends 'company-psc-ide-backend)
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(psc-ide-flycheck-setup))
|
||||
(set-company-backend! 'purescript-mode 'company-psc-ide-backend))
|
||||
|
|
|
@ -310,7 +310,8 @@
|
|||
|
||||
(use-package! flycheck-cython
|
||||
:when (modulep! +cython)
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after cython-mode)
|
||||
|
||||
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
|
||||
|
||||
(use-package! flycheck-raku
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after raku-mode)
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
(package! raku-mode :pin "977b14a7c1295ebf2aad2f807d3f8e7c27aeb47f")
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-raku
|
||||
:recipe (:host github :repo "widefox/flycheck-raku")
|
||||
:pin "b1acccd6e9d9753022571ee96d18b8e9f3227c65"))
|
||||
|
|
|
@ -75,7 +75,8 @@
|
|||
|
||||
(use-package! flycheck-guile
|
||||
:when (modulep! +guile)
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:after geiser)
|
||||
|
||||
;; Add Guix channels to Guile load path
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
(package! geiser-gauche :pin "8ff743f6416f00751e24aef8b9791501a40f5421"))
|
||||
(when (modulep! +guile)
|
||||
(package! geiser-guile :pin "24ce15de235c105daf5ecfb818200dae1c9815ee")
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-guile
|
||||
:recipe (:host github :repo "flatwhatson/flycheck-guile")
|
||||
:pin "e23a4d7813179124fd98abf1c2f4190a72569bee")))
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
(set-company-backend! 'solidity-mode 'company-solidity)
|
||||
|
||||
(use-package! solidity-flycheck ; included with solidity-mode
|
||||
:when (modulep! :checkers syntax)
|
||||
:when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
:config
|
||||
(setq flycheck-solidity-solc-addstd-contracts t)
|
||||
(when (funcall flycheck-executable-find solidity-solc-path)
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
(package! solidity-mode :pin "ddb4a901c33bd29ba2eefff3b7f7461849c6e833")
|
||||
(when (modulep! :completion company)
|
||||
(package! company-solidity))
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! solidity-flycheck))
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
(package! lsp-sourcekit :pin "468c641e35877e4e843f6b7c52a35937de562995")
|
||||
(when (modulep! :completion company)
|
||||
(package! company-sourcekit :pin "a1860ad4dd3a542acd2fa0dfac2a388cbdf4af0c"))
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(package! flycheck-swift :pin "4c5ad401252400a78da395fd56a71e67ff8c2761")))
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
(when (modulep! +tree-sitter)
|
||||
(add-hook 'zig-mode-local-vars-hook #'tree-sitter! 'append))
|
||||
|
||||
(when (modulep! :checkers syntax)
|
||||
(when (and (modulep! :checkers syntax)
|
||||
(not (modulep! :checkers syntax +flymake)))
|
||||
(flycheck-define-checker zig
|
||||
"A zig syntax checker using zig's `ast-check` command."
|
||||
:command ("zig" "ast-check" (eval (buffer-file-name)))
|
||||
|
@ -26,7 +27,7 @@
|
|||
((error line-start (file-name) ":" line ":" column ": error: " (message) line-end))
|
||||
:modes zig-mode)
|
||||
(add-to-list 'flycheck-checkers 'zig))
|
||||
|
||||
|
||||
(map! :localleader
|
||||
:map zig-mode-map
|
||||
"b" #'zig-compile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue