mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/tagbar: use tagsPackage
This commit is contained in:
parent
0e9b8351da
commit
068f5e97fc
2 changed files with 17 additions and 1 deletions
|
@ -7,7 +7,6 @@
|
||||||
helpers.vim-plugin.mkVimPlugin {
|
helpers.vim-plugin.mkVimPlugin {
|
||||||
name = "tagbar";
|
name = "tagbar";
|
||||||
globalPrefix = "tagbar_";
|
globalPrefix = "tagbar_";
|
||||||
extraPackages = [ pkgs.ctags ];
|
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||||
|
|
||||||
|
@ -30,4 +29,14 @@ helpers.vim-plugin.mkVimPlugin {
|
||||||
private = " ";
|
private = " ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraOptions = {
|
||||||
|
tagsPackage = lib.mkPackageOption pkgs "ctags" {
|
||||||
|
nullable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = cfg: {
|
||||||
|
extraPackages = [ cfg.tagsPackage ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,4 +51,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.tagbar = {
|
||||||
|
enable = true;
|
||||||
|
tagsPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue