refactor: use negated flags

Ref: 7a806521a92c
This commit is contained in:
Henrik Lissner
2024-10-19 14:57:44 -04:00
parent 15904349cf
commit 448bc5cae2
73 changed files with 87 additions and 132 deletions

View File

@ -27,7 +27,7 @@
(use-package! lsp-sourcekit
:when (modulep! +lsp)
:when (not (modulep! :tools lsp +eglot))
:when (modulep! :tools lsp -eglot)
:defer t
:init (add-hook 'swift-mode-local-vars-hook #'lsp! 'append)
:config

View File

@ -1,6 +1,6 @@
;;; lang/swift/doctor.el -*- lexical-binding: t; -*-
(assert! (or (not (modulep! +tree-sitter))
(assert! (or (modulep! -tree-sitter)
(modulep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")

View File

@ -8,6 +8,5 @@
(package! lsp-sourcekit :pin "63ff1ab638b655089077d17fdd728a48f8906e02"))
(when (modulep! :completion company)
(package! company-sourcekit :pin "a1860ad4dd3a542acd2fa0dfac2a388cbdf4af0c"))
(when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
(when (modulep! :checkers syntax -flymake)
(package! flycheck-swift :pin "4c5ad401252400a78da395fd56a71e67ff8c2761")))