AstroNvim / astrocommunity

A community repository of common plugin specifications
GNU General Public License v3.0
1.04k stars 214 forks source link

feat(vue): configure volar as tsserver plugin #1007

Closed gabrielscaranello closed 1 month ago

gabrielscaranello commented 1 month ago

📑 Description

Add Volar as a tsserver plugin, configured with vtsls.

ℹ Additional Information

In volar >= 2.0, some synchronization problems between tsserver and volar appear, causing errors when working with .ts and .vue files at the same time.

An issue for this is being tracked (yioneko/vtsls#148)

github-actions[bot] commented 1 month ago

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

gabrielscaranello commented 1 month ago

Have you tested this to make sure it works? Do we also need to reenable hybrid mode for volar?

Idk anything about this process but the code looks fine. I saw we just merge it if the user says they have actually tested it.

I tested it on three projects and it worked as expected. Enable hybrid mode works at first glance, but causes duplications in cmp entries and strange behavior in TS projects that don't use Vue.

mehalter commented 1 month ago

Ok cool! Then looks good to me! :shipit: