summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-20 01:15:09 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-20 01:15:09 +0200
commita8c9137cfbfdacd05abe8ce964dedb0e7bfcd9ae (patch)
tree2390d60a2e406745df40145c23d7b13398e310c8
parent0a5364f353dd1e72629c0f1272b5c9dab501ca6b (diff)
Update lualine
-rw-r--r--fnl/config/lualine.fnl41
1 files changed, 25 insertions, 16 deletions
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}}