aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/neovim/plugins/config/lualine.mustache.lua
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-07-10 01:29:48 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-07-10 01:29:48 +0530
commit085ff668ab45ac8d57c093e502b1175a86f2c14e (patch)
tree0fe7de3fdb29a9d0f7294e4af91d938fe5283533 /modules/tools/neovim/plugins/config/lualine.mustache.lua
parent70b590bf6b83dcb8f142451951a0f54ec3308283 (diff)
downloadhome-manager-config-085ff668ab45ac8d57c093e502b1175a86f2c14e.tar.gz
home-manager-config-085ff668ab45ac8d57c093e502b1175a86f2c14e.zip
Removed unnecessary packages.
Diffstat (limited to 'modules/tools/neovim/plugins/config/lualine.mustache.lua')
-rw-r--r--modules/tools/neovim/plugins/config/lualine.mustache.lua61
1 files changed, 61 insertions, 0 deletions
diff --git a/modules/tools/neovim/plugins/config/lualine.mustache.lua b/modules/tools/neovim/plugins/config/lualine.mustache.lua
new file mode 100644
index 0000000..bf4f1d1
--- /dev/null
+++ b/modules/tools/neovim/plugins/config/lualine.mustache.lua
@@ -0,0 +1,61 @@
+local lualine_theme = {
+ normal = {
+ a = { fg = "#{{base0D-hex}}", bg = "none", gui = "bold" },
+ b = { fg = "#{{base05-hex}}", bg = "none" },
+ c = { fg = "#{{base05-hex}}", bg = "none" },
+ },
+ insert = {
+ a = { fg = "#{{base0B-hex}}", bg = "none", gui = "bold" },
+ },
+ visual = {
+ a = { fg = "#{{base0E-hex}}", bg = "none", gui = "bold" },
+ },
+ replace = {
+ a = { fg = "#{{base08-hex}}", bg = "none", gui = "bold" },
+ },
+ command = {
+ a = { fg = "#{{base0A-hex}}", bg = "none", gui = "bold" },
+ },
+ inactive = {
+ a = { fg = "#{{base04-hex}}", bg = "none" },
+ b = { fg = "#{{base04-hex}}", bg = "none" },
+ c = { fg = "#{{base04-hex}}", bg = "none" },
+ },
+};
+
+local function macro_recording()
+ local recording_register = vim.fn.reg_recording()
+ if recording_register ~= "" then
+ return "@" .. recording_register
+ else
+ return ""
+ end
+end
+
+require("lualine").setup {
+ options = {
+ icons_enabled = true,
+ theme = lualine_theme,
+ section_separators = "",
+ component_separators = "",
+ },
+ sections = {
+ lualine_a = { "mode" },
+ lualine_b = {
+ "branch",
+ {
+ "diff",
+ colored = true,
+ symbols = {
+ added = " ",
+ modified = " ",
+ removed = " ",
+ }
+ }
+ },
+ lualine_c = { "filename" },
+ lualine_x = { macro_recording, "encoding", "fileformat", "filetype" },
+ lualine_y = { "progress" },
+ lualine_z = { "location" },
+ },
+};