Skip to content

mnjm/bottomline.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

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