From 235852a3f3d6af550064ad0fecfb39ed0aabd89d Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:35 +0000 Subject: [PATCH] Enable yas-minor-mode when using LSP --- config.org | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 74568ac..48401a5 100644 --- a/config.org +++ b/config.org @@ -377,7 +377,16 @@ (use-package lsp-ui :commands lsp-ui-mode) #+end_src - Finally, to enable Ido integration: + For LSP's most excellent autocompletion to work properly + [[help:yas-minor-mode][yas-minor-mode]] must be enabled, so hook that into =lsp-mode=: + + #+begin_src emacs-lisp + (add-hook 'lsp-mode-hook + (lambda () + (yas-minor-mode))) + #+end_src + + To enable Ido integration: #+begin_src emacs-lisp (require 'lsp-ido)