From 2eb41c8cf628faee91c31bf6476807a161a518be Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 20 Dec 2019 12:10:58 +0000 Subject: Changed yasnippet trigger key --- init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 61fc7e1..1b6acba 100644 --- a/init.el +++ b/init.el @@ -404,9 +404,13 @@ (use-package yasnippet :commands yas-minor-mode + :config + (define-key yas-minor-mode-map (kbd "C-c y") #'yas-expand) :hook (go-mode . yas-minor-mode) :hook (python-mode . yas-minor-mode)) +(use-package yasnippet-snippets) + ;;Company mode is a standard completion package that works well with lsp-mode. ;;company-lsp integrates company mode completion with lsp-mode. ;;completion-at-point also works out of the box but doesn't support snippets. @@ -419,8 +423,6 @@ (use-package company-lsp :commands company-lsp) -(use-package yasnippet-snippets) - (setq lsp-ui-doc-enable nil lsp-ui-peek-enable t lsp-ui-sideline-enable t -- cgit v1.2.3