Skip to content

Commit

Permalink
vimPlugins: update on 2024-11-21
Browse files Browse the repository at this point in the history
  • Loading branch information
347Online committed Nov 22, 2024
1 parent 5ea8c3f commit d532e99
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
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

0 comments on commit d532e99

Please sign in to comment.