From 79a46119a92eb24f7ad1697c0ccd5712ac68fb59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Sun, 16 Feb 2025 15:22:26 +0100 Subject: [PATCH] Tweak lualine --- .../nvim/lua/lazy-plugins/ui-lualine.lua | 104 ++++++------------ 1 file changed, 31 insertions(+), 73 deletions(-) diff --git a/nvim/.config/nvim/lua/lazy-plugins/ui-lualine.lua b/nvim/.config/nvim/lua/lazy-plugins/ui-lualine.lua index 3772b1b..7e6a66e 100644 --- a/nvim/.config/nvim/lua/lazy-plugins/ui-lualine.lua +++ b/nvim/.config/nvim/lua/lazy-plugins/ui-lualine.lua @@ -1,76 +1,34 @@ return { - 'nvim-lualine/lualine.nvim', - dependencies = { - 'nvim-tree/nvim-web-devicons', - }, - config = function() - local lualine = require('lualine') - local lazy_status = require('lazy.status') -- to configure lazy pending updates count + "nvim-lualine/lualine.nvim", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + config = function() + local lualine = require("lualine") + local lazy_status = require("lazy.status") -- to configure lazy pending updates count - local colors = { - blue = '#65D1FF', - green = '#3EFFDC', - violet = '#FF61EF', - yellow = '#FFDA7B', - red = '#FF4A4A', - fg = '#c3ccdc', - bg = '#112638', - inactive_bg = '#2c3043', - } - - local my_lualine_theme = { - normal = { - a = { bg = colors.blue, fg = colors.bg, gui = 'bold' }, - b = { bg = colors.bg, fg = colors.fg }, - c = { bg = colors.bg, fg = colors.fg }, - }, - insert = { - a = { bg = colors.green, fg = colors.bg, gui = 'bold' }, - b = { bg = colors.bg, fg = colors.fg }, - c = { bg = colors.bg, fg = colors.fg }, - }, - visual = { - a = { bg = colors.violet, fg = colors.bg, gui = 'bold' }, - b = { bg = colors.bg, fg = colors.fg }, - c = { bg = colors.bg, fg = colors.fg }, - }, - command = { - a = { bg = colors.yellow, fg = colors.bg, gui = 'bold' }, - b = { bg = colors.bg, fg = colors.fg }, - c = { bg = colors.bg, fg = colors.fg }, - }, - replace = { - a = { bg = colors.red, fg = colors.bg, gui = 'bold' }, - b = { bg = colors.bg, fg = colors.fg }, - c = { bg = colors.bg, fg = colors.fg }, - }, - inactive = { - a = { bg = colors.inactive_bg, fg = colors.semilightgray, gui = 'bold' }, - b = { bg = colors.inactive_bg, fg = colors.semilightgray }, - c = { bg = colors.inactive_bg, fg = colors.semilightgray }, - }, - } - - -- configure lualine with modified theme - lualine.setup({ - options = { - theme = my_lualine_theme, - disabled_filetypes = { - statusline = { 'NvimTree' }, - }, - }, - sections = { - lualine_x = { - { - lazy_status.updates, - cond = lazy_status.has_updates, - color = { fg = '#ff9e64' }, - }, - { 'encoding' }, - { 'fileformat' }, - { 'filetype' }, - }, - }, - }) - end, + -- configure lualine with modified theme + lualine.setup({ + options = { + theme = "onedark", + disabled_filetypes = { + statusline = { "NvimTree" }, + }, + section_separators = "", + component_separators = "", + }, + sections = { + lualine_x = { + { + lazy_status.updates, + cond = lazy_status.has_updates, + color = { fg = "#ff9e64" }, + }, + { "encoding" }, + { "fileformat" }, + { "filetype" }, + }, + }, + }) + end, }