From a8c9137cfbfdacd05abe8ce964dedb0e7bfcd9ae Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 20 Aug 2022 01:15:09 +0200 Subject: Update lualine --- fnl/config/lualine.fnl | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'fnl') diff --git a/fnl/config/lualine.fnl b/fnl/config/lualine.fnl index 9674323..2d124e7 100644 --- a/fnl/config/lualine.fnl +++ b/fnl/config/lualine.fnl @@ -1,17 +1,14 @@ ;; Statusbar. (module config.lualine {autoload {: util}}) -(def- ignore [:help - :packer - :neogitstatus - ;; :NvimTree - :lir - :spectre_panel - :alpha - :Outline - :NeogitStatus - :NeogitCommitMessage - :TelescopePrompt]) +(def- disable [:neogitstatus + :lir + :alpha + :Outline + :NeogitStatus + :NeogitCommitMessage]) + +(def- ignore [:help :NvimTree :packer :spectre_panel :TelescopePrompt]) (defn- active-clients [] (let [clients (vim.lsp.buf_get_clients) client_names []] @@ -34,19 +31,31 @@ :update_in_insert false :always_visible true}) -(def- diff {1 :diff :colored false :disabled_buftypes [:nvim-tree] :cond hide-in-width}) +(def- diff {1 :diff + :colored false + :disabled_buftypes [:nvim-tree] + :cond hide-in-width}) -(def- branch {1 "b:gitsigns_head" :icon " " :disabled_buftypes [:nvim-tree] :cond hide-in-width}) +(def- branch {1 "b:gitsigns_head" + :icon " " + :disabled_buftypes [:nvim-tree] + :cond hide-in-width}) -(def- filetype {1 :filetype :disabled_buftypes [:nvim-tree] :colored false :cond hide_in_width}) +(def- filetype {1 :filetype + :disabled_buftypes [:nvim-tree] + :colored false + :cond hide_in_width}) -(def- language-server {1 active-clients :disabled_buftypes [:nvim-tree] :cond hide_in_width}) +(def- language-server {1 active-clients + :disabled_buftypes [:nvim-tree] + :cond hide_in_width}) (def- opts {:options {:icons_enabled true :theme :auto :component_separators "" :section_separators {:left "" :right ""} - :disabled_filetypes ignore + :disabled_filetypes disable + :ignore_focus ignore :always_divide_middle true :globalstatus true :refresh {:statusline 50}} -- cgit v1.2.3-70-g09d2