Skip to content

kodai12/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('w0rp/ale')
call dein#add('majutsushi/tagbar')

TOML setting

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

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

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

[[plugins]]
repo = 'w0rp/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

About

Yet another theme for lightline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%