diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 18:52:34 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 18:52:34 +0200 |
commit | b74c9dd22e632bbe720587db92966c4d6811b766 (patch) | |
tree | f68e5bb862fd5a800f86852e535d29984f461cb3 /fnl/config/lualine.fnl | |
parent | 274648011686b1c822e63b03bdcc6f2ce8e9b41e (diff) |
style: format with fnlfmt
Diffstat (limited to 'fnl/config/lualine.fnl')
-rw-r--r-- | fnl/config/lualine.fnl | 92 |
1 files changed, 40 insertions, 52 deletions
diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl index 68f2f4f..5ab0920 100644 --- a/fnl/config/lualine.fnl +++ b/fnl/config/lualine.fnl @@ -1,60 +1,48 @@ ;; Statusbar. -(module config.lualine - {autoload {util util}}) +(module config.lualine {autoload {util util}}) -(defn- hide-in-width [] - (> (vim.fn.winwidth 0) 80)) +(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- branch {1 "b:gitsigns_head" :icon " " :cond hide-in-width}) -(def- filetype { - 1 "filetype" - :cond hide_in_width - :color {}}) +(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 {}})) |