feat: add lualine with custom theme

adapted from bibjaw99
This commit is contained in:
Lucas Barbieri 2024-07-19 00:04:09 -03:00
parent 35a006598b
commit 0e91b88c1a
3 changed files with 114 additions and 9 deletions

View File

@ -1,9 +1,9 @@
return { return {
'akinsho/bufferline.nvim', -- 'akinsho/bufferline.nvim',
version = "*", -- version = "*",
dependencies = { 'nvim-tree/nvim-web-devicons', "water-sucks/darkrose.nvim" }, -- dependencies = { 'nvim-tree/nvim-web-devicons', "water-sucks/darkrose.nvim" },
event = "BufEnter", -- event = "BufEnter",
config = function() -- config = function()
require('bufferline').setup({}) -- require('bufferline').setup({})
end -- end
} }

View File

@ -124,11 +124,11 @@ elseif fileContent == "solarized" then
require('solarized').setup({ require('solarized').setup({
enables = { enables = {
bufferline = true, bufferline = true,
cmp = true, cmp = true
}, },
pallete = "solarized", pallete = "solarized",
theme = "neo", theme = "neo",
transparent = false, transparent = true,
}) })
vim.cmd.colorscheme 'solarized' vim.cmd.colorscheme 'solarized'

View File

@ -1,4 +1,109 @@
return { return {
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local lualine = require("lualine")
local colors = {
blue = "#268bd2",
green = "#859900",
violet = "#6c71c4",
yellow = "#b58900",
red = "#dc332f",
cream = "#fdf6e3",
black = "#002b36",
grey = "#073642",
dark = "#002b36",
}
local solarized = {
normal = {
a = { bg = colors.dark, fg = colors.cream, gui = "bold" },
c = { bg = colors.grey, fg = colors.cream, gui = "bold" },
},
insert = {
a = { bg = colors.grey, fg = colors.cream, gui = "bold" },
c = { bg = colors.black, fg = colors.cream, gui = "bold" },
},
visual = {
a = { bg = colors.violet, fg = colors.black, gui = "bold" },
c = { bg = colors.dark, fg = colors.cream, gui = "bold" },
},
command = {
a = { bg = colors.green, fg = colors.black, gui = "bold" },
c = { bg = colors.black, fg = colors.cream, gui = "bold" },
},
replace = {
a = { bg = colors.blue, fg = colors.black, gui = "bold" },
c = { bg = colors.black, fg = colors.cream, gui = "bold" },
},
inactive = {
a = { bg = colors.green, fg = colors.black, gui = "bold" },
c = { bg = colors.black, fg = colors.cream, gui = "bold" },
},
}
-- configure lualine with modified theme
lualine.setup({
options = {
theme = solarized,
component_separators = { left = "", right = "|" },
section_separators = { left = "", right = "" },
},
sections = {
lualine_a = {
"mode",
"branch",
"diff",
"diagnostics",
{
-- "buffers",
-- buffers_color = {
-- active = { bg = colors.yellow, fg = colors.black, gui = "bold" },
-- inactive = { bg = colors.grey, fg = colors.cream, gui = "italic" },
-- },
symbols = {
modified = "",
alternate_file = "",
directory = "",
},
mode = 2,
},
},
lualine_b = {},
lualine_c = {
{
"filename",
file_status = true,
path = 3,
},
},
lualine_x = {},
lualine_y = {},
lualine_z = {
"searchcount",
"selectioncount",
"encoding",
"fileformat",
"filetype",
"progress",
"location",
},
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { "filename" },
lualine_x = { "location" },
lualine_y = {},
lualine_z = {},
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {},
})
end,
} }