mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-23 18:59:48 +01:00
21 lines
747 B
Nix
21 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";
|
|
};
|
|
};
|
|
};
|
|
}
|