mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 00:26:45 +00:00
feat(lualine): minor refactor
This commit is contained in:
parent
104c21c904
commit
b499930661
2 changed files with 4 additions and 11 deletions
|
@ -22,6 +22,7 @@ in {
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
globalstatus = ${boolToString cfg.globalStatus},
|
globalstatus = ${boolToString cfg.globalStatus},
|
||||||
ignore_focus = {'NvimTree'},
|
ignore_focus = {'NvimTree'},
|
||||||
|
extensions = {${optionalString config.vim.filetree.nvimTreeLua.enable "'nvim-tree'"}},
|
||||||
refresh = {
|
refresh = {
|
||||||
statusline = ${toString cfg.refresh.statusline},
|
statusline = ${toString cfg.refresh.statusline},
|
||||||
tabline = ${toString cfg.refresh.tabline},
|
tabline = ${toString cfg.refresh.tabline},
|
||||||
|
|
|
@ -8,11 +8,7 @@ with builtins; let
|
||||||
supported_themes = import ./supported_themes.nix;
|
supported_themes = import ./supported_themes.nix;
|
||||||
in {
|
in {
|
||||||
options.vim.statusline.lualine = {
|
options.vim.statusline.lualine = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "lualine";
|
||||||
type = types.bool;
|
|
||||||
description = "Enable lualine statusline";
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
icons = {
|
icons = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
@ -47,6 +43,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
theme = mkOption {
|
theme = mkOption {
|
||||||
|
description = "Theme for lualine";
|
||||||
default = "auto";
|
default = "auto";
|
||||||
type = types.enum (
|
type = types.enum (
|
||||||
[
|
[
|
||||||
|
@ -82,13 +79,8 @@ in {
|
||||||
"tomorrow"
|
"tomorrow"
|
||||||
"wombat"
|
"wombat"
|
||||||
]
|
]
|
||||||
++ (
|
++ optional (elem config.vim.theme.name supported_themes) config.vim.theme.name
|
||||||
if elem config.vim.theme.name supported_themes
|
|
||||||
then [config.vim.theme.name]
|
|
||||||
else []
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
description = "Theme for lualine";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sectionSeparator = {
|
sectionSeparator = {
|
||||||
|
|
Loading…
Reference in a new issue