Skip to content

delphinus/lightline-delphinus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet another theme for lightline

What is this?

This theme is for lightline that is a statusline plugin for Vim. This has features below.

Themes

Install

Basic setting

call dein#add('delphinus/lightline-delphinus')
call dein#add('itchyny/lightline.vim')

" optional
call dein#add('ryanoasis/vim-devicons')
call dein#add('dense-analysis/ale')
call dein#add('majutsushi/tagbar')
call dein#add('airblade/vim-gitgutter')
call dein#add('mhinz/vim-signify')

TOML setting

[[plugins]]
repo = 'delphinus/lightline-delphinus'

[[plugins]]
repo = 'itchyny/lightline.vim'

# optional
[[plugins]]
repo = 'ryanoasis/vim-devicons'

[[plugins]]
repo = 'dense-analysis/ale'

[[plugins]]
repo = 'majutsushi/tagbar'

for other plugin managers

TODO

other setting

g:lightline_delphinus_use_powerline_glyphs

If true, it uses glyphs for Powerline. You should use this options with fonts from powerline-fonts or natively supported ones such as Iosevka.

g:lightline_delphinus_use_nerd_fonts_glyphs

If true, it uses glyphs for nerd-fonts. You should use this options with patched fonts.

g:lightline_delphinus_colorscheme

Can be set solarized_improved (Default) or nord_improved.

g:lightline_delphinus_tagbar_enable

Enable tagbar feature. See below.

g:lightline_delphinus_gitgutter_enable

Enable gitgutter feature. See below.

Can be set solarized_improved (Default) or nord_improved.

ALE setting (optional)

If you want to use neat glyphs statusline for ALE, you should add some settings for ALE. Below is an example that I used in capturing GIF above.

" nr2char(...) is for describing icons from devicons
let g:ale_echo_msg_error_str = nr2char(0xf421) . ' '
let g:ale_echo_msg_warning_str = nr2char(0xf420) . ' '
let g:ale_echo_msg_info_str = nr2char(0xf05a) . ' '
let g:ale_echo_msg_format = '%severity%  %linter% - %s'
let g:ale_sign_column_always = 1
let g:ale_sign_error = g:ale_echo_msg_error_str
let g:ale_sign_warning = g:ale_echo_msg_warning_str
let g:ale_statusline_format = [
      \ g:ale_echo_msg_error_str . ' %d',
      \ g:ale_echo_msg_warning_str . ' %d',
      \ nr2char(0xf4a1) . '  ']

tagbar setting (optional)

lightline-delphinus can detect installed tagbar and show function names on cursor by tagbar#current(). The info from tagbar will be updated once per second at the maximum.

Set let g:lightline_delphinus_tagbar_enable = 1 to enable this.

2018-07-12 14 22 05

gitgutter setting (optional)

lightline-delphinus can detect installed vim-gitgutter and show diff info calculated from gitgutter#hunk#hunks().

Set let g:lightline_delphinus_gitgutter_enable = 1 to enable this.

2018-10-27 10 43 47

signify setting (optional)

lightline-delphinus can detect installed vim-signify and show diff info calculated from sy#repo#get_stats().

Set let g:lightline_delphinus_signify_enable = 1 to enable this.

スクリーンショット 0001-10-03 17 58 40

Contribution

The colorscheme's are formerly generated because the sources are a bit complicated and take long time to be evaluated in Vim.

  • source: autoload/lightline/delphinus/colorscheme/nord_improved.vim
  • generated: autoload/lightline/colorscheme/nord_improved.vim

So you should not edit the colorscheme's directly. You should edit the sources, and run the script to generate.

# edit the source
vim autoload/lightline/delphinus/colorscheme/nord_improved.vim
# run the script
# this needs Python 3.6+
bin/dump.py

About

Yet another theme for lightline

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •