Re structure lsp
This commit is contained in:
27
lisp/init-check.el
Normal file
27
lisp/init-check.el
Normal file
@@ -0,0 +1,27 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package flycheck
|
||||
:hook (emacs-startup . global-flycheck-mode)
|
||||
:config
|
||||
(setq flycheck-emacs-lisp-load-path 'inherit)
|
||||
|
||||
;; Rerunning checks on every newline is a mote excessive.
|
||||
(delq 'new-line flycheck-check-syntax-automatically)
|
||||
;; And don't recheck on idle as often
|
||||
(setq flycheck-idle-change-delay 1.0)
|
||||
|
||||
;; For the above functionality, check syntax in a buffer that you switched to
|
||||
;; only briefly. This allows "refreshing" the syntax check state for several
|
||||
;; buffers quickly after e.g. changing a config file.
|
||||
(setq flycheck-buffer-switch-check-intermediate-buffers t)
|
||||
|
||||
;; Display errors a little quicker (default is 0.9s)
|
||||
(setq flycheck-display-errors-delay 0.25))
|
||||
|
||||
(use-package flyover
|
||||
:diminish
|
||||
:hook flycheck-mode
|
||||
:custom (flyover-checkers '(flycheck)))
|
||||
|
||||
|
||||
(provide 'init-check)
|
||||
Reference in New Issue
Block a user