summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorMike Vink <>2023-04-03 11:20:29 +0200
committerMike Vink <>2023-04-03 11:20:54 +0200
commit58aeaab17cd4cc86930a0b5dec91ee8c98ab73ee (patch)
treec30f70d63be59c300f141ebddecb287f4b1d2150 /fnl
parent265ed10528ad7459d679b45ff2dbe97abe10907a (diff)
use deep selectors
Diffstat (limited to 'fnl')
-rw-r--r--fnl/conf/pkgs/heirline.fnl11
1 files changed, 6 insertions, 5 deletions
diff --git a/fnl/conf/pkgs/heirline.fnl b/fnl/conf/pkgs/heirline.fnl
index 9de5d81..e21dcd0 100644
--- a/fnl/conf/pkgs/heirline.fnl
+++ b/fnl/conf/pkgs/heirline.fnl
@@ -9,10 +9,10 @@
(heirline.load_colors colors)
(fn palette [name]
- (. (. colors :palette) name))
+ (. colors :palette name))
(fn theme [theme name]
- (. (. (. colors :theme) theme) name))
+ (. colors :theme theme name))
(var FileNameBlock
{;; let's first set up some attributes needed by this component and it's children
@@ -71,9 +71,10 @@
:provider (lambda [self]
(local curr_line (. (vim.api.nvim_win_get_cursor 0) 1))
(local lines (vim.api.nvim_buf_line_count 0))
- (local i (+ (math.floor (* (/ (- curr_line 1) lines)
- (length (. self :sbar))))
- 1))
+ (local i
+ (- (length self.sbar)
+ (math.floor (* (/ (- curr_line 1) lines)
+ (length (. self :sbar))))))
(string.rep (. self :sbar i) 2))
:hl {:fg (theme :syn :fun) :bg (theme :ui :bg)}})