Awesome
ℹ️ Info
Lualine theme for using with light and dark background.
⚠️ NOTE
No need to install this if you are using newpaper colorscheme for Neovim. Lualine theme was included into colorscheme. Just use this configuration to customize it.
🖼️ newpaper-light
🖼️ newpaper-dark
🌟 Features
- git native colors in status line
- light and dark theme
- integration to colorscheme with installation from newpaper.nvim
⚡️ Requirements
- Neovim >= 0.5.0
📦 Installation
Install via your favorite package manager:
lazy.nvim
require("lazy").setup({
{
"yorik1984/lualine-theme.nvim",
dependencies = {
"nvim-lualine/lualine.nvim",
},
},
})
🚀 Usage
-- light theme
require("lualine").setup({
options = {
theme = "newpaper-light"
-- empty with newpaper colosheme
}
})
-- dark theme
require("lualine").setup({
options = {
theme = "newpaper-dark"
-- empty with newpaper colorscheme
}
})
⚙️ Configuration
You can add this configuration for customize colors for git and diagnostics.
Available options:
Option | Default | Description |
---|---|---|
newpaper_lualine_bold | true | When true, section headers in the lualine theme will be bold |
- in light
- in dark
-- Lua
vim.g.newpaper_lualine_bold = true --default
require("lualine").setup {
options = {
-- theme = "newpaper-dark",
theme = "newpaper-light",
-- empty with newpaper colorscheme
section_separators = {"", ""},
component_separators = {"│", "│"}
},
sections = {
-- GIT settings
lualine_b = {
{"branch", icon = ""},
{
"diff",
colored = true,
diff_color = {
added = { fg = "#28A745" },
modified = { fg = "#DBAB09" },
removed = { fg = "#D73A49" }
},
symbols = {
added = " ",
modified = " ",
removed = " "
}
}
},
lualine_x = {
{
"diagnostics",
sources = {"nvim_lsp"},
sections = {"error", "warn", "info", "hint"},
diagnostics_color = {
error = { fg = "#AF0000" },
warn = { fg = "#D75F00" },
info = { fg = "#0087AF" },
hint = { fg = "#008700" }
},
symbols = {
error = " ",
warn = " ",
info = " ",
hint = " ",
}
}
}
}
}