summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-04-17 08:43:44 +0200
committerMike Vink <mike1994vink@gmail.com>2023-04-17 08:43:44 +0200
commit169a24f967067bf68957acf34a247ced7a6bb79d (patch)
treed8cd861b84cbdc3d31987b2bbd00194c9c6fc5d4
parent32dca2291471e4435308ab064c37ee9d6e7edb15 (diff)
fixup
-rw-r--r--fnl/conf/pkgs/heirline.fnl17
1 files changed, 10 insertions, 7 deletions
diff --git a/fnl/conf/pkgs/heirline.fnl b/fnl/conf/pkgs/heirline.fnl
index dac19b7..f155031 100644
--- a/fnl/conf/pkgs/heirline.fnl
+++ b/fnl/conf/pkgs/heirline.fnl
@@ -100,21 +100,24 @@
(theme :syn :identifier)])
(fn mark-component [i mark]
- (utils.insert {} {:hl {:bg (theme :ui :bg_m1)
+ (utils.insert {} {:hl {:bg (if (= mark.filename
+ (vim.fn.fnamemodify (vim.api.nvim_buf_get_name 0)
+ ":."))
+ (theme :ui :bg_p1)
+ (theme :ui :bg_m1))
:bold true
:fg (. harpoon-colors i)}
:provider (fn [self]
- (.. :M i " "))}))
+ (.. " M" i " "))}))
;{:hl {:fg (theme :syn :fun)} :provider (vim.fn.pathshorten mark.filename)}))
; {:hl {:bold true :fg (. harpoon-colors i)} :provider ")"} Space))
(local HarpoonMarks
- (utils.insert {:hl :TabLineSel}
- {:provider "🌊 "
- :hl {:bg (theme :ui :bg_m1)
- :fg (theme :syn :identifier)
- :bold true}}
+ (utils.insert {:hl :TabLineSel
+ :condition #(< 0
+ (length (. (harpoon.get_mark_config)
+ :marks)))}
{:init (lambda [self]
(local mark-list
(. (harpoon.get_mark_config) :marks))