Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/doc: add ctags support for NixOS options
This is rather a strawman of a PR to try to figure out the best spot to put this code and the documentation of how to use it. I don't really know. Sample content: ``` !_TAG_FILE_SORTED 1 1 !_TAG_FILE_ENCODING utf-8 1 _module.args /home/jade/dev/nixpkgs/lib/modules.nix 122 _module.check /home/jade/dev/nixpkgs/lib/modules.nix 186 _module.freeformType /home/jade/dev/nixpkgs/lib/modules.nix 193 _module.specialArgs /home/jade/dev/nixpkgs/lib/modules.nix 209 appstream.enable /home/jade/dev/nixpkgs/nixos/modules/config/appstream.nix 6 assertions /home/jade/dev/nixpkgs/nixos/modules/misc/assertions.nix 9 boot.binfmt.emulatedSystems /home/jade/dev/nixpkgs/nixos/modules/system/boot/binfmt.nix 272 ``` Sample usage (can be used in parallel with `nix-doc tags`): ``` nix build -f nixos/release.nix optionsCtags -o opts-tags (in vim): :set tags+=opts-tags :tj boot.binfmt.emulatedSystems ``` This PR depends on and contains NixOS#249243. Marked as draft till that's worked out. This PR pair replaces NixOS#208173.
- Loading branch information