Reorganize flymake config

This commit is contained in:
Kiana Sheibani 2024-03-02 17:27:57 -05:00
parent 3575569ea8
commit 7f2f176f1c
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1933,6 +1933,14 @@ And just to make sure nothing else accidentally starts running:
(package! flyspell :disable t)
#+end_src
*** Bindings
#+begin_src emacs-lisp
(map! :leader
:desc "Open errors buffer"
"c X" #'flymake-show-project-diagnostics)
#+end_src
*** Tooltips
Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by default.
@ -1945,6 +1953,13 @@ Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by
(set-face-foreground 'flymake-popon-posframe-border (doom-color 'selection)))
#+end_src
*** Popups
#+begin_src emacs-lisp
(after! flymake
(set-popup-rule! "^\\*Flymake" :vslot 1 :side 'bottom))
#+end_src
** Indent Guides
#+call: confpkg("!Pkg highlight-indent-guides")
@ -1970,14 +1985,12 @@ I've found that character-based indent guides work best.
;; (advice-add #'lsp-avy-lens :before (cmd! (require 'avy)))
#+end_src
Here's some convenient leader key bindings as well:
Here's a convenient leader key binding as well:
#+begin_src emacs-lisp
(map! :leader
:desc "Select LSP code lens"
"c L" #'lsp-avy-lens
:desc "Open errors buffer"
"c X" #'flymake-show-project-diagnostics)
"c L" #'lsp-avy-lens)
#+end_src
** Magit