fix(emacs): flycheck lsp
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
;;; init.el -*- lexical-binding: t -*-
|
;;; init.el -*- lexical-binding: t -*-
|
||||||
|
|
||||||
|
(require 'syd/transient)
|
||||||
|
|
||||||
(syd-require-features
|
(syd-require-features
|
||||||
'(syd/base
|
'(syd/base
|
||||||
syd/constants
|
syd/constants
|
||||||
@@ -33,7 +35,6 @@
|
|||||||
syd/which-key
|
syd/which-key
|
||||||
syd/tramp
|
syd/tramp
|
||||||
syd/handle
|
syd/handle
|
||||||
syd/flycheck
|
|
||||||
syd/org
|
syd/org
|
||||||
syd/org/roam
|
syd/org/roam
|
||||||
syd/org/agenda
|
syd/org/agenda
|
||||||
|
|||||||
@@ -5,10 +5,17 @@
|
|||||||
|
|
||||||
;; Nicer error messages, integrates with `lsp-mode'
|
;; Nicer error messages, integrates with `lsp-mode'
|
||||||
(use-package flycheck
|
(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
|
:general
|
||||||
(:states '(motion normal)
|
(:states '(motion normal)
|
||||||
"[ e" #'flycheck-previous-error
|
"[ 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)
|
(provide 'syd/flycheck)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
(require 'syd/base)
|
(require 'syd/base)
|
||||||
(require 'syd/popups)
|
(require 'syd/popups)
|
||||||
(require 'syd/handle)
|
(require 'syd/handle)
|
||||||
|
(require 'syd/flycheck)
|
||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:init
|
:init
|
||||||
|
|||||||
Reference in New Issue
Block a user