aboutsummaryrefslogtreecommitdiff
path: root/fnl/plugins/wilder.fnl
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-10-22 23:40:30 -0500
committeramelia squires <[email protected]>2024-10-22 23:40:30 -0500
commit0b7b1684d87b7d0b01b5645713b413e317699fd0 (patch)
tree70d54faa4536e97894754e63061f0d2fad99079c /fnl/plugins/wilder.fnl
readme
Diffstat (limited to 'fnl/plugins/wilder.fnl')
-rw-r--r--fnl/plugins/wilder.fnl21
1 files changed, 21 insertions, 0 deletions
diff --git a/fnl/plugins/wilder.fnl b/fnl/plugins/wilder.fnl
new file mode 100644
index 0000000..56b4155
--- /dev/null
+++ b/fnl/plugins/wilder.fnl
@@ -0,0 +1,21 @@
+(local gradient [:#74d7ec :#96cde2 :#b9c3d9 :#dcb9d0 :#ffafc7 :#ffafc7 :#fec1d2 :#fdd4de
+ :#fce6e9 :#fbf9f5 :#fbf9f5 :#fce8ea :#fdd7e0 :#fec6d5 :#ffb5cb :#ffb5cb :#dcbdd2 :#b9c5da
+ :#96cde2 :#73d5ea])
+
+(local wilder (require :wilder))
+(wilder.setup {:modes [:: :/ :?]})
+
+;this like 'builds' the gradient? idk
+(each [i fg (ipairs gradient)]
+ (tset gradient i
+ (wilder.make_hl (.. :WilderGradient i) :Pmenu [{:a 1} {:a 1} {:foreground fg}])))
+
+(wilder.set_option :renderer (wilder.wildmenu_renderer {
+ :separator " . "
+ :left [" "]
+ :right [" "]
+
+ :highlights {:gradient gradient}
+
+ :highlighter (wilder.highlighter_with_gradient [
+ (wilder.basic_highlighter)])}))