mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plenary.nvim is often pulled as a dependency of other plugins. It has filetype definitions in `data/plenary/filetypes` directory. Even though I don't think there are plugins using it instead of vim.filetype, but it should be no harm to add this directory by default.
63 lines
1.8 KiB
Nix
63 lines
1.8 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) types;
|
|
in
|
|
{
|
|
options.performance = {
|
|
combinePlugins = {
|
|
enable = lib.mkEnableOption "combinePlugins" // {
|
|
description = ''
|
|
Whether to enable EXPERIMENTAL option to combine all plugins
|
|
into a single plugin pack. It can significantly reduce startup time,
|
|
but all your plugins must have unique filenames and doc tags.
|
|
Any collision will result in a build failure. To avoid collisions
|
|
you can add your plugin to the `standalonePlugins` option.
|
|
Only standard neovim runtime directories are linked to the combined plugin.
|
|
If some of your plugins contain important files outside of standard
|
|
directories, add these paths to `pathsToLink` option.
|
|
'';
|
|
};
|
|
pathsToLink = lib.mkOption {
|
|
type = with types; listOf str;
|
|
default = [ ];
|
|
example = [ "/data" ];
|
|
description = "List of paths to link into a combined plugin pack.";
|
|
};
|
|
standalonePlugins = lib.mkOption {
|
|
type = with types; listOf (either str package);
|
|
default = [ ];
|
|
example = [ "nvim-treesitter" ];
|
|
description = "List of plugins (names or packages) to exclude from plugin pack.";
|
|
};
|
|
};
|
|
};
|
|
|
|
config.performance = {
|
|
# Set option value with default priority so that values are appended by default
|
|
combinePlugins.pathsToLink = [
|
|
# :h rtp
|
|
"/autoload"
|
|
"/colors"
|
|
"/compiler"
|
|
"/doc"
|
|
"/ftplugin"
|
|
"/indent"
|
|
"/keymap"
|
|
"/lang"
|
|
"/lua"
|
|
"/pack"
|
|
"/parser"
|
|
"/plugin"
|
|
"/queries"
|
|
"/rplugin"
|
|
"/spell"
|
|
"/syntax"
|
|
"/tutor"
|
|
"/after"
|
|
# ftdetect
|
|
"/ftdetect"
|
|
# plenary.nvim
|
|
"/data/plenary/filetypes"
|
|
];
|
|
};
|
|
}
|