Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show session in statusline
Browse files Browse the repository at this point in the history
fedemengo committed Apr 1, 2023
1 parent a80584b commit 878c2b7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions fnl/mods/ui/lualine.fnl
Original file line number Diff line number Diff line change
@@ -5,6 +5,9 @@

(gps.setup {:depth 5})

(fn session []
(vim.fn.fnamemodify vim.v.this_session ":t"))

(lualine.setup {
:options {
:icons_enabled false
@@ -18,13 +21,13 @@
:lualine_a ["mode"]
:lualine_b [
"filename"
"diagnostics"
{ :sources [ "nvim_diagnostic" "vim_lsp" ]}
{ :sections [ "error" "warn" "info" "hint" ]}
{ :colored true }
{ :diagnostic_color { :error { :fg "#ff0000" } } }]
"diagnostics" {
:sources [ "nvim_diagnostic" "vim_lsp" ]
:sections [ "error" "warn" "info" "hint" ]
:colored true
:always_visible true }]
:lualine_c [ gps.get_location {:cond gps.is_available }]
:lualine_x ["branch" "diff"]
:lualine_y ["filetype"]
:lualine_x ["branch"]
:lualine_y ["filetype" session]
:lualine_z ["progress" "location"]}})

0 comments on commit 878c2b7

Please sign in to comment.