commit ba1ebdef81bd88fdb03969bb8e6562ac0936c9d5
parent e6b55bc037784ab81febefd89eaf54cea1498e73
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Tue, 23 Apr 2019 15:42:55 -0400
Use flycheck for lsp-mode
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
@@ -915,7 +915,8 @@ Use Language Server Protocol (LSP) for code completion, jump to definition, etc.
(use-package lsp-mode
:ensure t
:init
- (add-hook 'prog-mode-hook #'lsp))
+ (add-hook 'prog-mode-hook #'lsp)
+ (setq lsp-prefer-flymake nil))
#+END_SRC
*** Flycheck Integration
@@ -924,7 +925,8 @@ Flycheck integration via =lsp-ui=.
(use-package lsp-ui
:ensure t
:init
- (add-hook 'lsp-mode-hook 'lsp-ui-mode))
+ (add-hook 'lsp-mode-hook 'lsp-ui-mode)
+ (setq lsp-ui-flycheck-enable t))
#+END_SRC
** Go-mode