vimUtils: move to utils directory

Add some organization
This commit is contained in:
Austin Horstman 2025-03-23 13:09:38 -05:00
parent 12baff07e5
commit cb00c3ba6c
No known key found for this signature in database
7 changed files with 9 additions and 9 deletions

View File

@ -139,9 +139,9 @@ Note: this is not possible anymore for Neovim.
## Adding new plugins to nixpkgs {#adding-new-plugins-to-nixpkgs}
Nix expressions for Vim plugins are stored in [pkgs/applications/editors/vim/plugins](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins). For the vast majority of plugins, Nix expressions are automatically generated by running [`nix-shell -p vimPluginsUpdater --run vim-plugins-updater`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/updater.nix). This creates a [generated.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/generated.nix) file based on the plugins listed in [vim-plugin-names](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/vim-plugin-names).
Nix expressions for Vim plugins are stored in [pkgs/applications/editors/vim/plugins](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/editors/vim/plugins). For the vast majority of plugins, Nix expressions are automatically generated by running [`nix-shell -p vimPluginsUpdater --run vim-plugins-updater`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/utils/updater.nix). This creates a [generated.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/generated.nix) file based on the plugins listed in [vim-plugin-names](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/vim-plugin-names).
When the vim updater detects an nvim-treesitter update, it also runs [`nvim-treesitter/update.py $(nix-build -A vimPlugins.nvim-treesitter)`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/update.py) to update the tree sitter grammars for `nvim-treesitter`.
When the vim updater detects an nvim-treesitter update, it also runs [`nvim-treesitter/update.py $(nix-build -A vimPlugins.nvim-treesitter)`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/utils/update.py) to update the tree sitter grammars for `nvim-treesitter`.
Some plugins require overrides in order to function properly. Overrides are placed in [overrides.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/overrides.nix). Overrides are most often required when a plugin requires some dependencies, or extra steps are required during the build process. For example `deoplete-fish` requires both `deoplete-nvim` and `vim-fish`, and so the following override was added:

View File

@ -40,7 +40,7 @@ treesitter = importlib.import_module("nvim-treesitter.update")
HEADER = (
"# GENERATED by ./pkgs/applications/editors/vim/plugins/update.py. Do not edit!"
"# GENERATED by ./pkgs/applications/editors/vim/plugins/utils/update.py. Do not edit!"
)
NIXPKGS_NVIMTREESITTER_FOLDER = "pkgs/applications/editors/vim/plugins/nvim-treesitter"

View File

@ -42,7 +42,7 @@ buildPythonApplication {
neovim-unwrapped
nurl
]
}" --prefix PYTHONPATH : "${./.}:${../../../../../maintainers/scripts/pluginupdate-py}" )
}" --prefix PYTHONPATH : "${./.}:${../../../../../../maintainers/scripts/pluginupdate-py}" )
wrapPythonPrograms
'';

View File

@ -423,7 +423,7 @@ rec {
vimBinary = "${vim}/bin/vim";
inherit rtpPath;
};
} ./hooks/vim-gen-doc-hook.sh
} ../hooks/vim-gen-doc-hook.sh
) { };
vimCommandCheckHook = callPackage (
@ -435,7 +435,7 @@ rec {
vimBinary = "${neovim-unwrapped}/bin/nvim";
inherit rtpPath;
};
} ./hooks/vim-command-check-hook.sh
} ../hooks/vim-command-check-hook.sh
) { };
neovimRequireCheckHook = callPackage (
@ -447,7 +447,7 @@ rec {
nvimBinary = "${neovim-unwrapped}/bin/nvim";
inherit rtpPath;
};
} ./hooks/neovim-require-check-hook.sh
} ../hooks/neovim-require-check-hook.sh
) { };
inherit

View File

@ -123,7 +123,7 @@ with pkgs;
common-updater-scripts = callPackage ../common-updater/scripts.nix { };
vimPluginsUpdater = callPackage ../applications/editors/vim/plugins/updater.nix {
vimPluginsUpdater = callPackage ../applications/editors/vim/plugins/utils/updater.nix {
inherit (python3Packages) buildPythonApplication ;
};
@ -17783,7 +17783,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) AppKit Security;
};
vimUtils = callPackage ../applications/editors/vim/plugins/vim-utils.nix { };
vimUtils = callPackage ../applications/editors/vim/plugins/utils/vim-utils.nix { };
vimPlugins = recurseIntoAttrs (callPackage ../applications/editors/vim/plugins { });