Skip to content

Commit 31d10c1

Browse files
committed
neovim wrapper: throw if two versions of nvim-treesitter are present
1 parent 1ba246a commit 31d10c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/applications/editors/vim/plugins/utils/vim-utils.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ let
216216
ln -s ${python3Env}/${python3Env.sitePackages} $out/pack/${packageName}/start/__python3_dependencies/python3
217217
'';
218218
in
219+
220+
assert
221+
(
222+
builtins.elem vimPlugins.nvim-treesitter (opt ++ allPlugins)
223+
&& builtins.elem vimPlugins.nvim-treesitter-legacy (opt ++ allPlugins)
224+
)
225+
-> throw "You cannot include two different versions of nvim-treesitter, perhaps you included a legacy plugin together with a new one?";
226+
219227
[
220228
packdirStart
221229
packdirOpt

0 commit comments

Comments
 (0)