AdamNiederer / AdamNiederer/vue-mode

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

未關閉
#108 0 則留言 7 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Emacs Lisp
星號
341
分支
59
PR 合併指標
30 天內沒有已合併 PR

描述

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)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start by reproducing the reported vue-mode behavior with the configuration snippet in the issue and the listed environment: Doom v2.0.9, GNU Emacs 27.1, vue-mode 20190415.231. The issue does not name a project file or failing test; done would mean identifying whether this is a vue-mode bug, an interaction with lsp/prettier/company/Doom, or only a configuration problem.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
emacs, emacs-lisp, javascript, pug
領域
developer-experience, tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
15/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。