From 76bd0e8999795b2b4997966ac031a8890235fb7d Mon Sep 17 00:00:00 2001 From: Nanderty Date: Mon, 10 Feb 2025 10:39:51 +0100 Subject: clean up lualine; funky colors, transparency --- lua/plugins/interface.lua | 83 +++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 42 deletions(-) (limited to 'lua/plugins/interface.lua') diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua index 42b9252..906dab3 100644 --- a/lua/plugins/interface.lua +++ b/lua/plugins/interface.lua @@ -1,3 +1,4 @@ + return { { 'nvim-tree/nvim-web-devicons', @@ -13,53 +14,51 @@ return { { 'nvim-lualine/lualine.nvim', event = 'VeryLazy', - opts = { - options = { - theme = function() return require('lualine.theme-monokai') end, - }, - sections = { - lualine_a = { - 'mode', + config = function() + require('lualine').setup({ + options = { + component_separators = '', + section_separators = '', + theme = require('lualine.theme-monokai'), }, - lualine_b = { - 'branch', - { - 'diagnostics', - symbols = { - error = ' ', - warn = ' ', - hint = ' ', - info = ' ', + sections = { + lualine_a = { + 'mode', + }, + lualine_b = { + 'branch', + }, + lualine_c = { + { + 'diagnostics', + symbols = { + error = ' ', + warn = ' ', + hint = ' ', + info = ' ', + }, }, }, + lualine_x = {}, + lualine_y = {}, + lualine_z = { + 'buffers', + }, }, - lualine_c = {}, - lualine_x = {}, - lualine_y = {}, - lualine_z = { - 'buffers', - }, - }, - inactive_sections = { - lualine_a = {}, - lualine_b = { - function() - return ' ' - end, - }, - lualine_c = { - 'filename', + inactive_sections = { + lualine_a = {}, + lualine_b = { + function() + return ' ' + end, + }, + lualine_c = { + 'filename', + }, + lualine_x = {}, + lualine_y = {}, + lualine_z = {}, }, - lualine_x = {}, - lualine_y = {}, - lualine_z = {}, - }, - }, - config = function(_, opts) - require('lualine').setup(opts) - vim.api.nvim_set_hl(0, 'StatusLine', { bg = require('monokai-pro.colorscheme').editor.background }) - vim.api.nvim_set_hl(0, 'StatusLineNC', { - bg = require('monokai-pro.colorscheme').editor.backgroundnil }) end, }, -- cgit v1.2.3