Skip to content

yorik1984/lualine-theme.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ℹ️ 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

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

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 git_color-light diagnostics_color-light
  • in dark git_color-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 = "",
                }
            }
        }
    }
}