Home

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-light-normal newpaper-light-insert newpaper-light-visual newpaper-light-v_line newpaper-light-replace newpaper-light-command

🖼️ newpaper-dark

newpaper-dark-normal newpaper-dark-insert newpaper-dark-visual newpaper-dark-v_line newpaper-dark-v_block newpaper-dark-replace newpaper-dark-command

🌟 Features

⚡️ Requirements

📦 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:

OptionDefaultDescription
newpaper_lualine_boldtrueWhen true, section headers in the lualine theme will be bold
-- 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 = " ",
                }
            }
        }
    }
}