AdamNiederer / AdamNiederer/vue-mode

How to correct configure syntax highlight + pug + lsp + prettier + company?

Đang mở
#108 0 bình luận 7 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Emacs Lisp
Star
341
Fork
59
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello, i have a problem with configuration vue-mode with doom. Syntax highlighting work only for html, "go to definition" not work. I tried a lot but i don't know what i did wrong

![image](https://user-images.githubusercontent.com/16963833/99187437-ad725c80-2767-11eb-9a89-c4837931490e.png)
![image](https://user-images.githubusercontent.com/16963833/99187452-bd8a3c00-2767-11eb-9d89-b370f03f58fe.png)

my configuration
```lisp
(use-package vue-mode
:mode "\\.vue\\'"
:hook (vue-mode . prettier-js-mode)
:config
(add-hook 'vue-mode-hook #'lsp)
(setq prettier-js-args '("--parser vue")) ;; I tried disable this property
(setq mmm-submode-decoration-level 0) ;; I tried change this value
)

(setq mmm-js-mode-enter-hook (lambda () (setq syntax-ppss-table nil)))
(setq mmm-typescript-mode-enter-hook (lambda () (setq syntax-ppss-table nil)))

```

I also have tried use vue-mode without any configuration, and i got same result, i tried use vue-mode without any another packages from scratch, and got same result.

*Environment*
- Doom v2.0.9
- GNU Emacs 27.1
- Vue mode 20190415.231

I'am newest in emacs, and i'am sorry if my questions looks stupid, i would want to achive something like my vim config

![image](https://user-images.githubusercontent.com/16963833/99187774-96cd0500-2769-11eb-8f7c-5ab91cf9e8ab.png)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.