AdamNiederer/vue-mode

Can't get syntax hightlighting

azzamsa opened this issue · 1 comments

image

I don't get syntax highlighting in script and style part.

My config:

(use-package vue-mode
  :mode "\\.vue\\'"
  :config
  (setq vue-html-tab-width 4)

  (add-hook 'vue-mode-hook #'lsp)
  (add-hook 'vue-mode-hook #'prettier-js)
  (setq prettier-js-args '("--parser vue"))

  (setq mmm-submode-decoration-level 0)
  )

I've tried to set mmm-submode-decoration-level to 2, but nothing happened. I also played with mmm-default-submode-face but nothing works.

App:

  • GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.4) of 2019-02-03, modified by Debian
  • vue-mode h 20190415.231 installed 219 Major mode for vue component based on mmm-mode
  • ‘mmm-mode-0.5.7/’.

Turns out I've put wrong line (add-hook 'vue-mode-hook #'prettier-js). Everything works out-of the box after removing it.

I've documented the steps here Setup Emacs for Vue.js Development