mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-07 04:15:51 +00:00
feat(lualine): add custom setup options
This commit is contained in:
parent
4001943a7b
commit
376c8bafd0
2 changed files with 77 additions and 60 deletions
|
|
@ -7,14 +7,36 @@
|
|||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) int bool str listOf enum;
|
||||
inherit (lib.lists) optional;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
|
||||
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 = mkPluginSetupOption "Lualine" {
|
||||
options = {
|
||||
disabled_filetypes = mkOption {
|
||||
description = tempDesc;
|
||||
type = listOf str;
|
||||
default = ["alpha"];
|
||||
};
|
||||
always_divide_middle = mkOption {
|
||||
description = tempDesc;
|
||||
type = bool;
|
||||
default = true;
|
||||
};
|
||||
ignore_focus = mkOption {
|
||||
description = tempDesc;
|
||||
type = listOf str;
|
||||
default = ["NvimTree"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
enable = mkEnableOption "lualine statusline plugin";
|
||||
|
||||
icons = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue