This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
lualine.fnl
41 lines (39 loc) · 1.49 KB
/
lualine.fnl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(module config.plugin.lualine
{autoload {core aniseed.core
lualine lualine
lsp config.plugin.lspconfig}})
(defn lsp_connection []
(let [message (lsp.get-progress-message)]
(if
(or (= message.status "begin")
(= message.status "report")) (.. message.msg " : " message.percent "%% ")
(= message.status "end") ""
"")))
(lualine.setup
{:options {:theme "tokyonight"
:icons_enabled true
:section_separators ["" ""]
:component_separators ["" ""]}
:sections {:lualine_a []
:lualine_b [[:mode {:upper true}]]
:lualine_c [["FugitiveHead"]
{1 :filename
:file_status true
:path 1
:shorting_target 40}]
:lualine_x [{1 :diagnostics
:sections [:error :warn :info :hint]
:sources [:nvim_lsp]}
[lsp_connection]
:location
:filetype]
:lualine_y [:encoding]
:lualine_z []}
:inactive_sections {:lualine_a []
:lualine_b []
:lualine_c [{1 :filename
:file_status true
:path 1}]
:lualine_x []
:lualine_y []
:lualine_z []}})