summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--init.el6
1 files changed, 4 insertions, 2 deletions
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