diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-09-11 20:42:44 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-09-11 20:42:44 +0200 |
commit | 5126742780ce0176eade4b2268a6c5df571a45e8 (patch) | |
tree | c5fc48304f881603c4c8e587c5060f741474273f /modules/home/conf/nvim/plgs/lualine | |
parent | build(treewide): Update (diff) | |
download | nixos-config-5126742780ce0176eade4b2268a6c5df571a45e8.tar.gz nixos-config-5126742780ce0176eade4b2268a6c5df571a45e8.zip |
fix(conf/nvim/plgs/lualine): Update to new interface
Diffstat (limited to '')
-rw-r--r-- | modules/home/conf/nvim/plgs/lualine/default.nix | 121 |
1 files changed, 64 insertions, 57 deletions
diff --git a/modules/home/conf/nvim/plgs/lualine/default.nix b/modules/home/conf/nvim/plgs/lualine/default.nix index 0b789558..54d20380 100644 --- a/modules/home/conf/nvim/plgs/lualine/default.nix +++ b/modules/home/conf/nvim/plgs/lualine/default.nix @@ -51,64 +51,71 @@ }; in { enable = true; - iconsEnabled = true; - theme = "nightfox"; - componentSeparators = { - left = ""; - right = ""; - }; - sectionSeparators = { - left = ""; - right = ""; - }; - disabledFiletypes = { - statusline = []; - winbar = []; - }; - ignoreFocus = []; - alwaysDivideMiddle = true; - globalstatus = false; - refresh = { - statusline = 1000; - tabline = 1000; - winbar = 1000; - }; - sections = { - lualine_a = ["mode"]; - lualine_b = [ - { - name = "FugitiveHead"; - icon = ""; - } - "diff" - "diagnostics" - ]; - lualine_c = ["filename"]; - lualine_x = ["searchcount" "filetype"]; - lualine_y = [ - "encoding" - "fileformat" - {name = get_mixed_indent;} - {name = get_trailing_whitespace;} + + settings = { + options = { + iconsEnabled = true; + theme = "nightfox"; + }; + + # TODO: add all installed and supported extensions here + extensions = [ + "toggleterm" + #"fugitive" # TODO: maybe add this? ]; - lualine_z = [{name = get_location_of_file;}]; - }; - inactiveSections = { - lualine_a = []; - lualine_b = []; - lualine_c = ["filename"]; - lualine_x = [{name = get_location_of_file;}]; - lualine_y = []; - lualine_z = []; - }; - tabline = {}; - winbar = {}; - inactiveWinbar = {}; - # TODO: add all installed and supported extensions here - extensions = [ - "toggleterm" - #"fugitive" # TODO: maybe add this? - ]; + componentSeparators = { + left = ""; + right = ""; + }; + sectionSeparators = { + left = ""; + right = ""; + }; + disabledFiletypes = { + statusline = []; + winbar = []; + }; + ignoreFocus = []; + alwaysDivideMiddle = true; + globalstatus = false; + refresh = { + statusline = 1000; + tabline = 1000; + winbar = 1000; + }; + sections = { + lualine_a = ["mode"]; + lualine_b = [ + { + __raw = '' + {'FugitiveHead', icon = ""} + ''; + } + "diff" + "diagnostics" + ]; + lualine_c = ["filename"]; + lualine_x = ["searchcount" "filetype"]; + lualine_y = [ + "encoding" + "fileformat" + get_mixed_indent + get_trailing_whitespace + ]; + lualine_z = [get_location_of_file]; + }; + inactiveSections = { + lualine_a = []; + lualine_b = []; + lualine_c = ["filename"]; + lualine_x = [get_location_of_file]; + lualine_y = []; + lualine_z = []; + }; + tabline = {}; + winbar = {}; + inactiveWinbar = {}; + }; }; } |