mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 15:30:50 +00:00
feat(lualine): add custom setup options
This commit is contained in:
parent
53c00f448d
commit
6969124456
2 changed files with 77 additions and 59 deletions
|
|
@ -3,15 +3,36 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkOption types elem optional;
|
||||
inherit (lib) mkEnableOption mkOption types elem optional optionalString;
|
||||
|
||||
supported_themes = import ./supported_themes.nix;
|
||||
colorPuccin =
|
||||
if config.vim.statusline.lualine.theme == "catppuccin"
|
||||
then "#181825"
|
||||
else "none";
|
||||
tempDesc = "see plugin docs for more info";
|
||||
in {
|
||||
options.vim.statusline.lualine = {
|
||||
setupOpts = lib.nvim.types.mkPluginSetupOption "Lualine" {
|
||||
options = {
|
||||
disabled_filetypes = mkOption {
|
||||
description = tempDesc;
|
||||
type = with types; listOf str;
|
||||
default = ["alpha"];
|
||||
};
|
||||
always_divide_middle = mkOption {
|
||||
description = tempDesc;
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
ignore_focus = mkOption {
|
||||
description = tempDesc;
|
||||
type = with types; listOf str;
|
||||
default = ["NvimTree"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
enable = mkEnableOption "lualine statusline plugin";
|
||||
|
||||
icons = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue