Hook flymake on prog-mode, add flymake-shellcheck
Remove pylsp config to switch back to pyright
This commit is contained in:
parent
aa4aefb95a
commit
405cbcafe2
21
README.org
21
README.org
|
@ -795,13 +795,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
||||||
( :check (:command "clippy")
|
( :check (:command "clippy")
|
||||||
:procMacro (:enable t)
|
:procMacro (:enable t)
|
||||||
:cargo ( :buildScripts (:enable t)
|
:cargo ( :buildScripts (:enable t)
|
||||||
:features "all")))))
|
:features "all"))))))
|
||||||
(add-to-list 'eglot-server-programs
|
|
||||||
`((python-ts-mode python-mode)
|
|
||||||
. ("pylsp"
|
|
||||||
:initializationOptions
|
|
||||||
( :pylsp ( :plugins ( :ruff ( :enabled t
|
|
||||||
:extendSelect ["I" "W" "C901"]))))))))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Apheleia formatting
|
** Apheleia formatting
|
||||||
|
@ -821,7 +815,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
||||||
(use-package flymake
|
(use-package flymake
|
||||||
:ensure t
|
:ensure t
|
||||||
:bind (("C-c C-." . flymake-goto-next-error)
|
: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
|
#+end_src
|
||||||
|
|
||||||
*** Diagnostics in popup
|
*** Diagnostics in popup
|
||||||
|
@ -833,6 +828,16 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
||||||
:config
|
:config
|
||||||
(global-flymake-popon-mode +1))
|
(global-flymake-popon-mode +1))
|
||||||
#+end_src
|
#+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
|
** Project
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq project-switch-use-entire-map t
|
(setq project-switch-use-entire-map t
|
||||||
|
|
Loading…
Reference in a new issue