summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-20 12:10:58 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-20 12:10:58 +0000
commit2eb41c8cf628faee91c31bf6476807a161a518be (patch)
tree6f747e3660885b8f5c8357e41c2b27009d4b318b /init.el
parenta9f4e9359251b3a9cba15d582b9b8a28b8a2f834 (diff)
Changed yasnippet trigger key
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