mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/telescope: iconsPackage -> icons provider options
This commit is contained in:
parent
5ff98645ce
commit
38a183564b
21 changed files with 88 additions and 14 deletions
|
@ -2,6 +2,7 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
options,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
|
@ -9,7 +10,6 @@ let
|
||||||
inherit (lib.nixvim)
|
inherit (lib.nixvim)
|
||||||
keymaps
|
keymaps
|
||||||
mkNullOrOption
|
mkNullOrOption
|
||||||
mkPackageOption
|
|
||||||
toLuaObject
|
toLuaObject
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
|
@ -37,6 +37,17 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||||||
]
|
]
|
||||||
"This option no longer has any effect now that the `plugin.telescope.keymaps` implementation uses `<cmd>`."
|
"This option no longer has any effect now that the `plugin.telescope.keymaps` implementation uses `<cmd>`."
|
||||||
)
|
)
|
||||||
|
# TODO: added 2024-09-20 remove after 24.11
|
||||||
|
(lib.mkRemovedOptionModule
|
||||||
|
[
|
||||||
|
"plugins"
|
||||||
|
"telescope"
|
||||||
|
"iconsPackage"
|
||||||
|
]
|
||||||
|
''
|
||||||
|
Please use `plugins.web-devicons` or `plugins.mini.modules.icons` with `plugins.mini.mockDevIcons` instead.
|
||||||
|
''
|
||||||
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
|
@ -89,11 +100,6 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
iconsPackage = lib.mkPackageOption pkgs [
|
|
||||||
"vimPlugins"
|
|
||||||
"nvim-web-devicons"
|
|
||||||
] { nullable = true; };
|
|
||||||
|
|
||||||
batPackage = lib.mkPackageOption pkgs "bat" {
|
batPackage = lib.mkPackageOption pkgs "bat" {
|
||||||
nullable = true;
|
nullable = true;
|
||||||
};
|
};
|
||||||
|
@ -101,7 +107,18 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
||||||
|
|
||||||
callSetup = false;
|
callSetup = false;
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
extraPlugins = mkIf (cfg.iconsPackage != null) [ cfg.iconsPackage ];
|
# TODO: added 2024-09-20 remove after 24.11
|
||||||
|
plugins.web-devicons = mkIf (
|
||||||
|
!(
|
||||||
|
config.plugins.mini.enable
|
||||||
|
&& config.plugins.mini.modules ? icons
|
||||||
|
&& config.plugins.mini.mockDevIcons
|
||||||
|
)
|
||||||
|
) { enable = mkOverride 1490 true; };
|
||||||
|
warnings = optional (options.plugins.web-devicons.enable.highestPrio == 1490) ''
|
||||||
|
Nixvim (plugins.telescope) `web-devicons` automatic installation is deprecated.
|
||||||
|
Please use `plugins.web-devicons` or `plugins.mini.modules.icons` with `plugins.mini.mockDevIcons` instead.
|
||||||
|
'';
|
||||||
|
|
||||||
extraConfigVim = mkIf (cfg.highlightTheme != null) ''
|
extraConfigVim = mkIf (cfg.highlightTheme != null) ''
|
||||||
let $BAT_THEME = '${cfg.highlightTheme}'
|
let $BAT_THEME = '${cfg.highlightTheme}'
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
updateOnChangeCommand = "e .";
|
updateOnChangeCommand = "e .";
|
||||||
clearJumpsOnChange = true;
|
clearJumpsOnChange = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
telescopeDisabled = {
|
telescopeDisabled = {
|
||||||
|
|
|
@ -70,6 +70,8 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
telescopeDisabled = {
|
telescopeDisabled = {
|
||||||
|
|
|
@ -84,6 +84,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
modules."core.integrations.telescope".__empty = null;
|
modules."core.integrations.telescope".__empty = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# This test is flaky and fails non-deterministically
|
# This test is flaky and fails non-deterministically
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
plugins.octo.enable = true;
|
plugins.octo.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
# This test is flaky and fails non-deterministically
|
# This test is flaky and fails non-deterministically
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
plugins.octo = {
|
plugins.octo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -30,12 +32,10 @@
|
||||||
# This test is flaky and fails non-deterministically
|
# This test is flaky and fails non-deterministically
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
plugins = {
|
plugins.web-devicons.enable = true;
|
||||||
octo = {
|
plugins.octo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.picker = "fzf-lua";
|
settings.picker = "fzf-lua";
|
||||||
};
|
|
||||||
web-devicons.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
# This test is flaky and fails non-deterministically
|
# This test is flaky and fails non-deterministically
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
plugins.octo = {
|
plugins.octo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -91,6 +92,7 @@
|
||||||
no-packages = {
|
no-packages = {
|
||||||
# Need to add gh executable to runtime path for plugin
|
# Need to add gh executable to runtime path for plugin
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
plugins.web-devicons.enable = false;
|
||||||
plugins.octo = {
|
plugins.octo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ghPackage = null;
|
ghPackage = null;
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTelescope = true;
|
enableTelescope = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTelescope = true;
|
enableTelescope = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTelescope = true;
|
enableTelescope = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{
|
{
|
||||||
empty = {
|
empty = {
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
plugins.telescope.enable = true;
|
plugins.telescope.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
plugins.telescope = {
|
plugins.telescope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -19,6 +21,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
combine-plugins = {
|
combine-plugins = {
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
plugins.telescope.enable = true;
|
plugins.telescope.enable = true;
|
||||||
|
|
||||||
performance.combinePlugins.enable = true;
|
performance.combinePlugins.enable = true;
|
||||||
|
@ -32,10 +35,19 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
no-packages = {
|
no-packages = {
|
||||||
|
plugins.web-devicons.enable = false;
|
||||||
plugins.telescope = {
|
plugins.telescope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
batPackage = null;
|
batPackage = null;
|
||||||
iconsPackage = null;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mini-icons = {
|
||||||
|
plugins.mini = {
|
||||||
|
enable = true;
|
||||||
|
mockDevIcons = true;
|
||||||
|
modules.icons = { };
|
||||||
|
};
|
||||||
|
plugins.telescope.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.file-browser.enable = true;
|
extensions.file-browser.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
@ -82,5 +83,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.frecency.enable = true;
|
extensions.frecency.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
@ -72,5 +74,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.fzf-native.enable = true;
|
extensions.fzf-native.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
combine-plugins = {
|
combine-plugins = {
|
||||||
|
@ -28,6 +30,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.fzf-native.enable = true;
|
extensions.fzf-native.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
|
|
||||||
performance.combinePlugins.enable = true;
|
performance.combinePlugins.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.fzy-native.enable = true;
|
extensions.fzy-native.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
combine-plugins = {
|
combine-plugins = {
|
||||||
|
@ -27,6 +29,7 @@
|
||||||
extensions.fzy-native.enable = true;
|
extensions.fzy-native.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
performance.combinePlugins.enable = true;
|
performance.combinePlugins.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.live-grep-args.enable = true;
|
extensions.live-grep-args.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
default = {
|
default = {
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
@ -42,6 +44,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
custom-packages = {
|
custom-packages = {
|
||||||
|
@ -53,6 +56,7 @@
|
||||||
grepPackage = pkgs.gnugrep;
|
grepPackage = pkgs.gnugrep;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
no-packages = {
|
no-packages = {
|
||||||
|
@ -64,5 +68,6 @@
|
||||||
grepPackage = null;
|
grepPackage = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.manix.enable = true;
|
extensions.manix.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
default = {
|
default = {
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
@ -34,6 +36,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
no-packages = {
|
no-packages = {
|
||||||
|
@ -45,5 +48,6 @@
|
||||||
manixPackage = null;
|
manixPackage = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.media-files.enable = true;
|
extensions.media-files.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
@ -47,5 +49,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.ui-select.enable = true;
|
extensions.ui-select.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
@ -18,5 +19,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions.undo.enable = true;
|
extensions.undo.enable = true;
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
|
@ -39,5 +40,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,6 +187,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
without-ripgrep = {
|
without-ripgrep = {
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTelescope = true;
|
enableTelescope = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -66,6 +68,7 @@
|
||||||
sqlite-lua.enable = true;
|
sqlite-lua.enable = true;
|
||||||
telescope.enable = true;
|
telescope.enable = true;
|
||||||
|
|
||||||
|
web-devicons.enable = true;
|
||||||
yanky = {
|
yanky = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,7 @@
|
||||||
};
|
};
|
||||||
treesitter.enable = true;
|
treesitter.enable = true;
|
||||||
telescope.enable = true;
|
telescope.enable = true;
|
||||||
|
web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue