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

@ -58,6 +58,5 @@
(use-package! flycheck-golangci-lint
:when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
:when (modulep! :checkers syntax -flymake)
:hook (go-mode . flycheck-golangci-lint-setup))

View File

@ -19,7 +19,7 @@
(warn! "Couldn't find gomodifytags. Manipulating struct tags will not work"))
(when (and (modulep! :completion company)
(not (modulep! +lsp)))
(modulep! -lsp))
(require 'company-go)
(unless (executable-find company-go-gocode-command)
(warn! "Couldn't find gocode. Code completion won't work")))

View File

@ -10,6 +10,5 @@
(when (modulep! :completion company)
(package! company-go :pin "31948b463f2fc18f8801e5a8fe511fef300eb3dd"))
(when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
(when (modulep! :checkers syntax -flymake)
(package! flycheck-golangci-lint :pin "91c59b128aa6f719069cfb3e5df77588691a3e14"))