Giter Site home page Giter Site logo

lualine-theme.nvim's Introduction

ℹ️ 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 = "",
                }
            }
        }
    }
}

lualine-theme.nvim's People

Contributors

yorik1984 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.