diff options
author | aktersnurra <grydholm@kth.se> | 2022-04-23 21:22:44 +0200 |
---|---|---|
committer | aktersnurra <grydholm@kth.se> | 2022-04-23 21:22:44 +0200 |
commit | 4ca15d0aa017119670ae454d69911e1ee0e55131 (patch) | |
tree | 7fd19c02017e74cbd3678706013ba9e25beb184e /fnl/config/lualine.fnl | |
parent | 4932d32cae9a2a63226b67e6678d459b773f1f8b (diff) |
style: format
Diffstat (limited to 'fnl/config/lualine.fnl')
-rw-r--r-- | fnl/config/lualine.fnl | 76 |
1 files changed, 40 insertions, 36 deletions
diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl index 5ab0920..7ed3a61 100644 --- a/fnl/config/lualine.fnl +++ b/fnl/config/lualine.fnl @@ -3,46 +3,50 @@ (defn- hide-in-width [] (> (vim.fn.winwidth 0) 80)) -(def- diagnostics {1 :diagnostics - :sources [:nvim_diagnostic] - :sections [:error :warn] - :symbols {:error " " :warn " "} - :colored false - :update_in_insert false - :always_visible true}) +(def- diagnostics + {1 :diagnostics + :sources [:nvim_diagnostic] + :sections [:error :warn] + :symbols {:error " " :warn " "} + :colored false + :update_in_insert false + :always_visible true}) -(def- diff {1 :diff - :colored false - :symbols {:added " " :modified " " :removed " "} - :cond hide-in-width}) +(def- diff + {1 :diff + :colored false + :symbols {:added " " :modified " " :removed " "} + :cond hide-in-width}) (def- branch {1 "b:gitsigns_head" :icon " " :cond hide-in-width}) (def- filetype {1 :filetype :cond hide_in_width :color {}}) (let [lualine (util.load-plugin :lualine)] - (lualine.setup {:options {:icons_enabled true - :theme :auto - :component_separators {:left "" :right ""} - :section_separators {:left "" :right ""} - :disabled_filetypes [:alpha - :dashboard - :NvimTree - :Outline] - :always_divide_middle true} - :sections {:lualine_a [:mode] - :lualine_b [branch :filename] - :lualine_c [diff] - :lualine_x [diagnostics filetype] - :lualine_y {} - :lualine_z [:location :progress :encoding]} - :inactive_sections {:lualine_a [:mode] - :lualine_b [:filename] - :lualine_c {} - :lualine_x {} - :lualine_y {} - :lualine_z [:location - :progress - :encoding]} - :tabline {} - :extensions {}})) + (lualine.setup + {:options + {:icons_enabled true + :theme :auto + :component_separators {:left "" :right ""} + :section_separators {:left "" :right ""} + :disabled_filetypes [:alpha + :dashboard + :NvimTree + :Outline] + :always_divide_middle true} + :sections {:lualine_a [:mode] + :lualine_b [branch :filename] + :lualine_c [diff] + :lualine_x [diagnostics filetype] + :lualine_y {} + :lualine_z [:location :progress :encoding]} + :inactive_sections {:lualine_a [:mode] + :lualine_b [:filename] + :lualine_c {} + :lualine_x {} + :lualine_y {} + :lualine_z [:location + :progress + :encoding]} + :tabline {} + :extensions {}})) |