Hook flymake on prog-mode, add flymake-shellcheck

Remove pylsp config to switch back to pyright
This commit is contained in:
Evie Litherland-Smith 2024-01-28 10:01:53 +00:00
parent aa4aefb95a
commit 405cbcafe2

View file

@ -795,13 +795,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
( :check (:command "clippy")
:procMacro (:enable t)
:cargo ( :buildScripts (:enable t)
:features "all")))))
(add-to-list 'eglot-server-programs
`((python-ts-mode python-mode)
. ("pylsp"
:initializationOptions
( :pylsp ( :plugins ( :ruff ( :enabled t
:extendSelect ["I" "W" "C901"]))))))))
:features "all"))))))
#+end_src
** Apheleia formatting
@ -821,7 +815,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
(use-package flymake
:ensure t
:bind (("C-c C-." . flymake-goto-next-error)
("C-c C-," . flymake-goto-prev-error)))
("C-c C-," . flymake-goto-prev-error))
:hook (prog-mode . flymake-mode))
#+end_src
*** Diagnostics in popup
@ -833,6 +828,16 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:config
(global-flymake-popon-mode +1))
#+end_src
*** shellcheck
#+begin_src emacs-lisp
(use-package flymake-shellcheck
:ensure t
:after flymake
:diminish
:hook (sh-mode . flymake-shellcheck-load))
#+end_src
** Project
#+begin_src emacs-lisp
(setq project-switch-use-entire-map t