Add flycheck configuration

main
Sergio Alvariño 3 years ago
parent 192dfc7fab
commit 10adc96535

@ -570,6 +570,7 @@ Quick navigation to words
* company
Autocompletion with [[https://company-mode.github.io/][company]]
*Remember*: =company-lsp= is deprecated, don't use it.
#+begin_src emacs-lisp
(use-package company
:init
@ -615,6 +616,19 @@ Quick navigation to words
)
#+end_src
* flycheck
You *must* use [[https://www.flycheck.org/en/latest/][flycheck]] if you use LSP. (Flymake + LSP is hell)
Syntax checking for programming languages
#+begin_src emacs-lisp
(use-package flycheck
:config
(global-set-key (kbd "C-c f p") 'flycheck-previous-error)
(global-set-key (kbd "C-c f n") 'flycheck-next-error)
:init
(global-flycheck-mode t)
)
#+end_src
* LSP
We are using [[https://emacs-lsp.github.io/lsp-mode/][lsp-mode]] but keep an eye on [[https://github.com/joaotavora/eglot][eglot]] as an alternative.
**WARNING**: =lsp-company= is no longer supported

Loading…
Cancel
Save