summaryrefslogtreecommitdiff
path: root/nvim/fnl/plugins/lualine.fnl
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-11-08 21:01:41 +0800
committereltrac <hi@eltr.ac>2026-11-08 21:05:06 +0800
commit64560eb91743a827c78d525858a0c43adef6f548 (patch)
treed4ced922936f0df483e9a5e21d455ed7c6f6dd1d /nvim/fnl/plugins/lualine.fnl
parent449d3c50efccbb806eea313fac45d2fb25d6b7ca (diff)
nvim: convert nvim submodule to a tracked directoryHEADmaster
Diffstat (limited to 'nvim/fnl/plugins/lualine.fnl')
m---------nvim0
-rw-r--r--nvim/fnl/plugins/lualine.fnl79
2 files changed, 79 insertions, 0 deletions
diff --git a/nvim b/nvim
deleted file mode 160000
-Subproject d2e1e6a0d60cf427a8a56c0caf57c8ec60a8e36
diff --git a/nvim/fnl/plugins/lualine.fnl b/nvim/fnl/plugins/lualine.fnl
new file mode 100644
index 0000000..2da54aa
--- /dev/null
+++ b/nvim/fnl/plugins/lualine.fnl
@@ -0,0 +1,79 @@
+{1 :nvim-lualine/lualine.nvim
+ :config (fn []
+ ;; THEME
+ (fn kanagawa-lualine-theme []
+ (var colors nil)
+ (set colors
+ ((. (require :kanagawa.colors) :setup) {:theme :dragon}))
+ (local palette colors.palette)
+ {:command {:a {:bg palette.dragonOrange
+ :fg palette.dragonBlack0
+ :gui :bold}
+ :b {:bg palette.dragonBlack4
+ :fg palette.dragonWhite}
+ :c {:bg palette.dragonBlack0
+ :fg palette.dragonWhite}}
+ :inactive {:a {:bg palette.dragonBlack2
+ :fg palette.dragonBlack6}
+ :b {:bg palette.dragonBlack2
+ :fg palette.dragonBlack6}
+ :c {:bg palette.dragonBlack0
+ :fg palette.dragonBlack6}}
+ :insert {:a {:bg palette.dragonGreen
+ :fg palette.dragonBlack0
+ :gui :bold}
+ :b {:bg palette.dragonBlack4
+ :fg palette.dragonWhite}
+ :c {:bg palette.dragonBlack0
+ :fg palette.dragonWhite}}
+ :normal {:a {:bg palette.dragonBlue2
+ :fg palette.dragonBlack0
+ :gui :bold}
+ :b {:bg palette.dragonBlack4
+ :fg palette.dragonWhite}
+ :c {:bg palette.dragonBlack0
+ :fg palette.dragonWhite}}
+ :replace {:a {:bg palette.dragonRed
+ :fg palette.dragonBlack0
+ :gui :bold}
+ :b {:bg palette.dragonBlack4
+ :fg palette.dragonWhite}
+ :c {:bg palette.dragonBlack0
+ :fg palette.dragonWhite}}
+ :visual {:a {:bg palette.dragonViolet
+ :fg palette.dragonBlack0
+ :gui :bold}
+ :b {:bg palette.dragonBlack4
+ :fg palette.dragonWhite}
+ :c {:bg palette.dragonBlack0
+ :fg palette.dragonWhite}}})
+
+ ;; Custom components
+ (fn wordcount []
+ (..
+ "W:"
+ (: (require :wordcounter) :count_cur_buf_words)))
+
+ ((. (require :lualine) :setup) {:inactive_sections {:lualine_a {}
+ :lualine_b {}
+ :lualine_c [:filename]
+ :lualine_x [:location]
+ :lualine_y {}
+ :lualine_z {}}
+ :options {:component_separators {:left ""
+ :right ""}
+ :section_separators {:left ""
+ :right ""}
+ :theme (kanagawa-lualine-theme)}
+ :sections {:lualine_a [:mode]
+ :lualine_b [:branch
+ :diff
+ :diagnostics]
+ :lualine_c [:filename]
+ :lualine_x [wordcount
+ :fileformat
+ :filetype]
+ :lualine_y [:progress]
+ :lualine_z [:location]}}))
+ :dependencies [:nvim-tree/nvim-web-devicons :rebelot/kanagawa.nvim]}
+