From bba988db077055418189bbc41fccb29bc1378c9c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 13 Jul 2022 19:50:56 +0200 Subject: Update lualine config --- fnl/config/lualine.fnl | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'fnl/config/lualine.fnl') diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl index 47537ff..b8c651d 100644 --- a/fnl/config/lualine.fnl +++ b/fnl/config/lualine.fnl @@ -1,6 +1,18 @@ ;; Statusbar. (module config.lualine {autoload {util util}}) +(def- ignore [:help + :packer + :neogitstatus + :NvimTree + :lir + :spectre_panel + :alpha + :Outline + :NeogitStatus + :TelescopePrompt + ""]) + (defn- hide-in-width [] (> (vim.fn.winwidth 0) 80)) (def- diagnostics {1 :diagnostics @@ -25,14 +37,11 @@ :theme :auto :component_separators {:left "" :right ""} :section_separators {:left "" :right ""} - :disabled_filetypes [:alpha - :dashboard - :NvimTree - :Outline] + :disabled_filetypes ignore :always_divide_middle true} :sections {:lualine_a [:mode] - :lualine_b [branch :filename] - :lualine_c [diff] + :lualine_b [branch diff :filename] + :lualine_c {} :lualine_x [diagnostics filetype] :lualine_y {} :lualine_z [:location :progress :encoding]} -- cgit v1.2.3-70-g09d2