                   (setq web-mode-block-padding 0
                         web-mode-script-padding 0
                         web-mode-style-padding 0)))))
+
+(use-package company-web :after web-mode
+  :init
+  (with-eval-after-load "company"
+    (push-company-backends 'web-mode
+                           '(company-web-html
+                             company-web-jade
+                             company-web-slim
+                             company-css))))
 
 ;; Snippets and Zen Coding for HTML
 (use-package emmet-mode

  (defvar aggressive-indent-excluded-modes))

(autoload 'push-company-backends "base-lib")

;;;
;; Packages

(use-package web-mode
  :mode
  (("\\.h?html?$" . web-mode)
   ("\\.\\(tpl\\|blade\\)\\(\\.php\\)?$" . web-mode)
   ("\\.[agj]sp$" . web-mode)
   ("\\.as[cp]x$" . web-mode)
   ("\\.erb$" . web-mode)
   ("\\.mustache$" . web-mode)
   ("\\.tsx$" . web-mode)
   ("\\.jsx$" . web-mode)
   ("\\.djhtml$" . web-mode)
   ("wp-content/themes/.+/.+\\.php$" . web-mode))
  :init
  (add-hooks-pair 'web-mode 'turn-off-smartparens-mode)
  (with-eval-after-load "company"
    (push-company-backends 'web-mode
                           '(company-tern
                             company-css
                             company-web-html
                             company-files)))
  :config
  (setq web-mode-enable-html-entities-fontification t
        ;; Highlight enclosing tags of the element under cursor
        web-mode-enable-current-element-highlight t)

  ;; No padding for nested sections inside HTML
  (with-eval-after-load "editorconfig"

  :config
  (setq emmet-move-cursor-between-quotes t))

(use-package slim-mode :mode "\\.slim$"
  :config
  (with-eval-after-load "aggressive-indent"
