Giter VIP home page Giter VIP logo

bottomline.nvim's Introduction

Yet another neovim statusline

A minimal statusline plugin that supports gitsigns and LSP

Demo image

My other plugins


Installation

Optional Dependencies

Plug 'mnjm/winline.nvim'
" Option dependency - gitsigns
Plug 'lewis6991/gitsigns.nvim'
" Optional dependency for icons
Plug 'nvim-tree/nvim-web-devicons'

packer.nvim

use {
    'mnjm/winline.nvim',
    -- optional dependency for icons 
    requires = {  { 'lewis6991/gitsigns.nvim', opt = true },
        {'nvim-tree/nvim-web-devicons', opt = true } }
}

lazy.nvim

{
    'mnjm/winline.nvim'
    dependencies = {  'lewis6991/gitsigns.nvim', 'nvim-tree/nvim-web-devicons' }
}

Setup

To start BottomLine, add below line in your neovim config

require('bottomline').setup()

Customization

You can pass custom config to override default configs to setup call, for ex

require('bottomline').setup({
    enable = true,
    enable_icons = true,
    highlights = {
        BLMode = { fg="#282c34", bg="#98c379", bold=true },
        BLLine = { link="BLMode" },
    },
    -- seperators = { '',  '' },
    -- seperators = { '',  '' },
    seperators = { '',  '' },
    git_symbols = { branch = "" },
    lsp_symbols = {
        error = "",
        warn = "",
        info = "",
        hint = "",
    },
})

Available default configuration options

require('bottomline').setup({
    enable = true,
    enable_icons = false,
    seperators = { '', '' },              -- seperators icons
    enable_git = true,                    -- enable git section
    enable_lsp = true,                    -- enable lsp section
    display_buf_no = false,               -- add additional buf number section at the end of statusline
    git_symbols = {
        branch = "",
        added = "+",
        removed = "-",
        changed = "~",
    },
    lsp_symbols = {
        error = "Err",
        warn = "Wrn",
        info = "Info",
        hint = "Hint",
    },
    -- bottomline highlights
    highlights = {
        -- Active Statusline
        BLMode          = {fg = "#000000", bg = "#5faf5f", bold = true},
        BLGitInfo       = {fg = "#000000", bg="#5f8787", bold = false},
        BLFill          = {fg = "#ffffff", bg="#282828", bold = false},
        BLFile          = {link = 'BLMode'},
        BLLspInfo       = {link = 'BLGitInfo'},
        BLFileType      = {fg = "#ffffff", bg = "#878787", bold = false},
        BLLine          = {fg = "#ffffff", bg="#585858", bold = false},
        BLBuf           = {link = 'BLMode'},
        -- Inactive statusline
        BLFileInactive  = {link = 'BLFileType'},
        BLBufInactive   = {link = 'BLFileInactive'},
    },
})

Addendum

This work is derived from


Demo image Demo image Demo image


Licence MIT

bottomline.nvim's People

Contributors

mnjm avatar

Stargazers

Yuta Katayama avatar  avatar  avatar

Watchers

 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.