All Projects → doums → barow

doums / barow

Licence: other
A minimalist statusline for n/vim

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to barow

jay
Yet another Vim colorscheme on GitHub. Inspired by Molokai.
Stars: ✭ 35 (+12.9%)
Mutual labels:  airline, lightline
Vim Crystalline
Functions for taking the monotony out of building your own fancy statusline in Vim
Stars: ✭ 264 (+751.61%)
Mutual labels:  powerline, statusline
Lightline.vim
A light and configurable statusline/tabline plugin for Vim
Stars: ✭ 5,886 (+18887.1%)
Mutual labels:  statusline, lightline
Pureline
A Pure Bash Powerline PS1 Command Prompt
Stars: ✭ 342 (+1003.23%)
Mutual labels:  powerline, statusline
Nerd Fonts
Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
Stars: ✭ 31,778 (+102409.68%)
Mutual labels:  powerline, statusline
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+41800%)
Mutual labels:  powerline, statusline
Iceberg.vim
🇦🇶 Bluish color scheme for Vim and Neovim
Stars: ✭ 1,636 (+5177.42%)
Mutual labels:  airline, lightline
Vim Devicons
Adds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
Stars: ✭ 4,473 (+14329.03%)
Mutual labels:  powerline, statusline
Vim Vide
Lightest vimrc, while strong enough. 最轻的vim配置,却足够强!
Stars: ✭ 649 (+1993.55%)
Mutual labels:  powerline, statusline
Powerline Extra Symbols
▶️ Extra glyphs for your powerline separators
Stars: ✭ 778 (+2409.68%)
Mutual labels:  powerline, statusline
navim
A full-blown IDE based on Neovim (or Vim) with better navigation.
Stars: ✭ 16 (-48.39%)
Mutual labels:  airline, lightline
powerless
Minimalistic/responsive ZSH prompt inspired by powerline.
Stars: ✭ 63 (+103.23%)
Mutual labels:  powerline
feline.nvim
A minimal, stylish and customizable statusline for Neovim written in Lua
Stars: ✭ 867 (+2696.77%)
Mutual labels:  statusline
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (+164.52%)
Mutual labels:  powerline
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
Stars: ✭ 66 (+112.9%)
Mutual labels:  powerline
lemonblocks
A status bar generator for lemonbar, inspired by i3blocks and dwmblocks.
Stars: ✭ 31 (+0%)
Mutual labels:  bar
nvim-hardline
A simple Neovim statusline
Stars: ✭ 122 (+293.55%)
Mutual labels:  statusline
cmder-powershell-powerline-prompt
Custom PowerShell prompt for Cmder on Windows
Stars: ✭ 94 (+203.23%)
Mutual labels:  powerline
duing
😱 The progress bar / status badge of SVG generator service
Stars: ✭ 68 (+119.35%)
Mutual labels:  bar
shapebar
A simple bar based on Lemonbar.
Stars: ✭ 16 (-48.39%)
Mutual labels:  bar

Barow

barow

A minimalist statusline for n/vim.

install

If you use a plugin manager, follow the traditional way.

For example with vim-plug add this in .vimrc/init.vim:

Plug 'doums/barow'

Then run in vim:

:source $MYVIMRC
:PlugInstall

If you use vim's native package :h packages.

usage

All settings are optional. The default configuration is as follows:

" in .vimrc/init.vim

let g:barow = {
      \  'modes': {
      \    'normal': [' ', 'BarowNormal'],
      \    'insert': ['i', 'BarowInsert'],
      \    'replace': ['r', 'BarowReplace'],
      \    'visual': ['v', 'BarowVisual'],
      \    'v-line': ['l', 'BarowVisual'],
      \    'v-block': ['b', 'BarowVisual'],
      \    'select': ['s', 'BarowVisual'],
      \    'command': ['c', 'BarowCommand'],
      \    'shell-ex': ['!', 'BarowCommand'],
      \    'terminal': ['t', 'BarowTerminal'],
      \    'prompt': ['p', 'BarowNormal'],
      \    'inactive': [' ', 'BarowModeNC']
      \  },
      \  'statusline': ['Barow', 'BarowNC'],
      \  'tabline': ['BarowTab', 'BarowTabSel', 'BarowTabFill'],
      \  'buf_name': {
      \    'empty': '',
      \    'hi': ['BarowBufName', 'BarowBufNameNC']
      \  },
      \  'read_only': {
      \    'value': 'ro',
      \    'hi': ['BarowRO', 'BarowRONC']
      \  },
      \  'buf_changed': {
      \    'value': '*',
      \    'hi': ['BarowChange', 'BarowChangeNC']
      \  },
      \  'tab_changed': {
      \    'value': '*',
      \    'hi': ['BarowTChange', 'BarowTChangeNC']
      \  },
      \  'line_percent': {
      \    'hi': ['BarowLPercent', 'BarowLPercentNC']
      \  },
      \  'row_col': {
      \    'hi': ['BarowRowCol', 'BarowRowColNC']
      \  },
      \  'modules': []
      \}

You can customize any of these values.
For any value you want to customize provide a value with the same data structure. Otherwise barow will throw an error and exit.

For modes, buf_changed and tab_changed the text length is intentionally set to one character max.

The strings that start with Barow* are highlight groups. To change the colors you can give your own groups. Use barow#hi function to define your own groups.
All hi keys and statusline key expect a list of two hi groups. First is for the statusline of the current window, second for statusline in other window.

modules

You can add additional modules to your bar in a simple way.
Available modules:

  • barowLSP, display LSP diagnostics count and status
  • barowGit, display git current branch
" .vimrc/init.vim
" ...

Plug 'doums/barow'
Plug 'doums/barowGit'
Plug 'doums/barowLSP'
" ...

let g:barow = {
" ...
      \  'modules': [
      \    [ 'barowGit#branch', 'BarowHint' ],
      \    [ 'barowLSP#error', 'BarowError' ],
      \    [ 'barowLSP#warning', 'BarowWarning' ],
      \    [ 'barowLSP#info', 'BarowInfo' ],
      \    [ 'barowLSP#hint', 'BarowHint' ],
      \    [ 'barowLSP#coc_status', 'StatusLine' ],
      \    [ 'barowLSP#ale_status', 'StatusLine' ]
      \  ]
      \}

Each module is a list of two items. The first one is the function to call to get the output of the module. The second is the highlight group.
Module outputs will only appear in the statusbar of the current window.

You can define your own module. To update the statusline call barow#update function.

barow#hi

You can use barow#hi function to create your own highlight groups.

" arguments:   group_name,     fg_color,       bg_color,       style (optional)
call barow#hi('MyCustomGroup', ['#ffffff', 7], ['#000000', 0], 'bold')

For more details see :h highlight-args.

barow#update

To update the statusline call barow#update function. Useful if you write a module.

call barow#update()

color support

  • Truecolor
  • 256 color

license

Mozilla Public License 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].