mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor: use negated flags
Ref: 7a806521a92c
This commit is contained in:
@ -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))
|
||||
|
@ -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")))
|
||||
|
@ -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"))
|
||||
|
Reference in New Issue
Block a user