Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启frontend后,.vue文件里lsp快捷键失效 #11

Open
leezb101 opened this issue Feb 24, 2023 · 1 comment
Open

开启frontend后,.vue文件里lsp快捷键失效 #11

leezb101 opened this issue Feb 24, 2023 · 1 comment

Comments

@leezb101
Copy link

leezb101 commented Feb 24, 2023

项目基本信息:
vite3+vue3+typescript

.eslintrc.json文件配置:

{
    "env": {
        "browser": true,
        "es2021": true,
        "node": true
    },
    "extends": [
        "eslint:recommended",
        "plugin:vue/vue3-essential",
        "plugin:@typescript-eslint/recommended"
    ],
    "overrides": [
    ],
    "parser": "vue-eslint-parser",
    "parserOptions": {
        "ecmaVersion": "latest",
        "parser":"@typescript-eslint/parser",
        "sourceType": "module"
    },
    "plugins": [
        "vue",
        "@typescript-eslint"
    ],
    "rules": {
    }
}

目前.ts/.tsx/.json文件均正常,但是.vue文件中gp、gd、rn、ac等lsp里配置的快捷键都无法使用,如rn会触发“r”+“'n'”的替换当前光标选中文本为'n'的操作。实在不知道怎么找问题了,求大佬指点。

@nshen
Copy link
Owner

nshen commented Feb 24, 2023

应该是我没配置 vue 的 lsp 的原因,因为我不会 vue。

要在lsp文件夹里加个配置文件,再mason装一下对应的server才行,不知道你能不能研究一下发个pr😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants