diff --git a/lisp/init-lsp.el b/lisp/init-lsp.el index d24499c..ce46969 100644 --- a/lisp/init-lsp.el +++ b/lisp/init-lsp.el @@ -1,7 +1,28 @@ ;; -*- lexical-binding: t; -*- (use-package flymake - :hook (prog-mode . flymake-mode)) + :hook (prog-mode) + :diminish + :functions my-elisp-flymake-byte-compile + :bind ("C-c d" . flymake-show-buffer-diagnostics) + :custom + (flymake-no-changes-timeout nil) + (flymake-fringe-indicator-position 'right-fringe) + (flymake-margin-indicator-position 'right-margin) + :config + ;; Check elisp with `load-path' + (defun my-elisp-flymake-byte-compile (fn &rest args) + "Wrapper for `elisp-flymake-byte-compile'." + (let ((elisp-flymake-byte-compile-load-path + (append elisp-flymake-byte-compile-load-path load-path))) + (apply fn args))) + (advice-add 'elisp-flymake-byte-compile :around #'my-elisp-flymake-byte-compile)) + +(use-package flyover + :diminish + :hook flymake-mode + :custom (flyover-checkers '(flymake))) + (use-package jsonrpc) (use-package eglot