fix(emacs): flycheck lsp
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
;;; init.el -*- lexical-binding: t -*-
|
||||
|
||||
(require 'syd/transient)
|
||||
|
||||
(syd-require-features
|
||||
'(syd/base
|
||||
syd/constants
|
||||
@@ -33,7 +35,6 @@
|
||||
syd/which-key
|
||||
syd/tramp
|
||||
syd/handle
|
||||
syd/flycheck
|
||||
syd/org
|
||||
syd/org/roam
|
||||
syd/org/agenda
|
||||
|
||||
@@ -5,10 +5,17 @@
|
||||
|
||||
;; Nicer error messages, integrates with `lsp-mode'
|
||||
(use-package flycheck
|
||||
:custom ((flycheck-highlighting-mode nil))
|
||||
:custom (; disable annoying underlines.
|
||||
(flycheck-highlighting-mode nil)
|
||||
; don't display error at point without input.
|
||||
(flycheck-auto-display-errors-after-checking nil))
|
||||
:general
|
||||
(:states '(motion normal)
|
||||
"[ e" #'flycheck-previous-error
|
||||
"] e" #'flycheck-next-error))
|
||||
"] e" #'flycheck-next-error)
|
||||
:config
|
||||
(syd-defadvice syd-suppress-flycheck-popups-a (&rest _)
|
||||
:override #'flycheck-display-error-at-point-soon
|
||||
nil))
|
||||
|
||||
(provide 'syd/flycheck)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
(require 'syd/base)
|
||||
(require 'syd/popups)
|
||||
(require 'syd/handle)
|
||||
(require 'syd/flycheck)
|
||||
|
||||
(use-package lsp-mode
|
||||
:init
|
||||
|
||||
Reference in New Issue
Block a user