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

vimPlugins.tsc-nvim: init at 2024-08-14 #357769

Merged
merged 2 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pkgs/applications/editors/vim/plugins/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12811,6 +12811,18 @@ final: prev:
meta.homepage = "https://github.com/folke/ts-comments.nvim/";
};

tsc-nvim = buildVimPlugin {
pname = "tsc.nvim";
version = "2024-08-14";
src = fetchFromGitHub {
owner = "dmmulroy";
repo = "tsc.nvim";
rev = "82c37ebfe45d30763db6f45b54e18f1e485bb52c";
sha256 = "14fa5w73bxpvwy3jm25mmx08l2v6c1w35ca8gc61mayxja55d4ls";
};
meta.homepage = "https://github.com/dmmulroy/tsc.nvim/";
};

tslime-vim = buildVimPlugin {
pname = "tslime.vim";
version = "2020-09-09";
Expand Down
9 changes: 9 additions & 0 deletions pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
taskwarrior3,
tmux,
tup,
typescript,
vim,
which,
xkb-switch,
Expand Down Expand Up @@ -2602,6 +2603,14 @@ in
nvimRequireCheck = "todo-comments";
};

tsc-nvim = super.tsc-nvim.overrideAttrs {
patches = [ ./patches/tsc.nvim/fix-path.patch ];

postPatch = ''
substituteInPlace lua/tsc/utils.lua --replace '@tsc@' ${typescript}/bin/tsc
'';
};

tssorter-nvim = super.tssorter-nvim.overrideAttrs {
dependencies = with self; [ nvim-treesitter ];
nvimRequireCheck = "tssorter";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lua/tsc/utils.lua b/lua/tsc/utils.lua
index 6433bcb..75760f9 100644
--- a/lua/tsc/utils.lua
+++ b/lua/tsc/utils.lua
@@ -16,7 +16,7 @@ M.find_tsc_bin = function()
return node_modules_tsc_binary
end

- return "tsc"
+ return "@tsc@"
end

--- @param run_mono_repo boolean
1 change: 1 addition & 0 deletions pkgs/applications/editors/vim/plugins/vim-plugin-names
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ https://github.com/folke/trouble.nvim/,,
https://github.com/Pocco81/true-zen.nvim/,,
https://github.com/tesaguri/trust.vim/,HEAD,
https://github.com/folke/ts-comments.nvim/,HEAD,
https://github.com/dmmulroy/tsc.nvim/,HEAD,
https://github.com/jgdavey/tslime.vim/,,
https://github.com/mtrajano/tssorter.nvim/,HEAD,
https://github.com/Quramy/tsuquyomi/,,
Expand Down