mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-29 18:19:49 +01:00
22 lines
747 B
Nix
22 lines
747 B
Nix
|
{lib, ...}: let
|
||
|
inherit (lib.modules) mkRenamedOptionModule;
|
||
|
inherit (lib.options) mkOption mkEnableOption;
|
||
|
inherit (lib.types) listOf str;
|
||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||
|
in {
|
||
|
imports = [
|
||
|
(mkRenamedOptionModule ["vim" "visuals" "scrollBar"] ["vim" "visuals" "nvim-scrollbar"])
|
||
|
];
|
||
|
|
||
|
options.vim.visuals.nvim-scrollbar = {
|
||
|
enable = mkEnableOption "extensible Neovim Scrollbar [nvim-scrollbar]";
|
||
|
setupOpts = mkPluginSetupOption "scrollbar-nvim" {
|
||
|
excluded_filetypes = mkOption {
|
||
|
type = listOf str;
|
||
|
default = ["prompt" "TelescopePrompt" "noice" "noice" "NvimTree" "neo-tree" "alpha" "notify" "Navbuddy"];
|
||
|
description = "Filetypes to hide the scrollbar on";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|