Fix yaml layer autocompletion

Autocompletion was not working with yasnippets for yaml layer. This also
fixes autocompletion for ansible layer.
This commit is contained in:
Ayush Goyal 2016-07-06 04:47:14 +05:30 committed by syl20bnr
parent c98f862174
commit 1fdc2f8fe2
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,14 @@
;;; config.el --- YAML Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; variables
(spacemacs|defvar-company-backends yaml-mode)

View File

@ -12,7 +12,7 @@
yaml-mode))
(defun yaml/post-init-company ()
(add-hook 'yaml-mode-hook 'company-mode))
(spacemacs|add-company-hook yaml-mode))
(defun yaml/init-yaml-mode ()
"Initialize YAML mode"