GithubHelp home page GithubHelp logo

Comments (5)

johnsoncodehk avatar johnsoncodehk commented on July 20, 2024

The location is incorrect, it should be path of @vue/language-server.

- plugins = [{  name = "@vue/typescript-plugin", location = <path to ".volta/tools/shared/@vue/typescript-plugin">, languages = ["vue"] }]
+ plugins = [{  name = "@vue/typescript-plugin", location = <path to "xxx/@vue/language-server">, languages = ["vue"] }]

from language-tools.

stefanfrede avatar stefanfrede commented on July 20, 2024

Thank you!

With this change I get very good support inside the <script> block, little to no support for Vue inside the <template> block, and no support inside the <script> block.

from language-tools.

schelmo avatar schelmo commented on July 20, 2024

if you run helix with the -v or even -vv switch, you can see the lsp communication in your :log-open

from language-tools.

RayGuo-ergou avatar RayGuo-ergou commented on July 20, 2024

You need both vue-language-server and tsserver running to get full LSP support, in your health check, there seems only one.

from language-tools.

stefanfrede avatar stefanfrede commented on July 20, 2024

Thanks for all your input πŸ™

It looks like I figured it out:

[language-server.typescript-language-server.config]
plugins = [{  name = "@vue/typescript-plugin", location = <path to ".volta/tools/shared/@vue/language-server">, languages = ["vue"] }]
tsserver = { path = <path to ".volta/tools/shared/typescript/lib"> }

[language-server.vuels]
command = "vue-language-server"
args = ["--stdio"]

[[language]]
name = "vue"
auto-format = true
language-servers = ["typescript-language-server", "vuels"]
formatter = { command = 'prettier', args = ["--parser", "vue"] }
❯ hx --health vue
Configured language servers:
  βœ“ typescript-language-server: <path to ".volta/bin/typescript-language-server">
  βœ“ vue-language-server: <path to ".volta/bin/vue-language-server">
Configured debug adapter: None
Configured formatter: prettier
Binary for formatter: /home/sfrede/.volta/bin/prettier
Highlight queries: βœ“
Textobject queries: ✘
Indent queries: ✘

from language-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.