languages/ts: add vtsls support for vue#1322
Open
sumrdev wants to merge 2 commits intoNotAShelf:mainfrom
Open
Conversation
sjcobb2022
suggested changes
Jan 8, 2026
auto-merge was automatically disabled
January 8, 2026 19:03
Head branch was pushed to by a user without write access
f528a7a to
ea7f4ee
Compare
| @@ -275,11 +312,13 @@ in { | |||
| config = mkIf cfg.enable (mkMerge [ | |||
Collaborator
There was a problem hiding this comment.
there should probably be a
mkIf cfg.extraVueSupport {
vim.languages.ts.lsp.servers = ["vtsls"];
};
| _file = ./ts.nix; | ||
| options.vim.languages.ts = { | ||
| enable = mkEnableOption "Typescript/Javascript language support"; | ||
| extraVueSupport = mkEnableOption "Vue support for vtsls"; |
Collaborator
There was a problem hiding this comment.
@NotAShelf should vue be in it's own language module? since astro/svelte has their own
There was a problem hiding this comment.
I think the main argument for having it in the typescript model is because: "Since v3.0.0, the Vue language server requires vtsls to support TypeScript." (source).
Both astro and svelte have their standalone LSPs because they deviate from regular ts / tsx so much.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds vtsls - a typescript lsp that also works with vue.
I also added a switch if you want to install the vue grammar or not since vtsls works as a standalone ts lsp as well.
This is my first PR to any FOSS project so bear with me
nix fmt).#nix(default package).#maximal.#docs-html(manual, must build).#docs-linkcheck(optional, please build if adding links)x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwinAdd a 👍 reaction to pull requests you find important.