This theme is for lightline that is a statusline plugin for Vim. This has features below.
- Additional components for lightline
- Support ALE (Asynchronous Lint Engine)
- Support Powerline icons (optional)
- Support majutsushi/tagbar to show function names (optional)
- Support airblade/vim-gitgutter / mhinz/vim-signify to show diff status (optional)
- Improved colorscheme for lightline to fit with Solarized & Nord colorschemes
-
For Solarized Dark (best match for vim-solarized8)
-
For Solarized Light (best match for vim-solarized8)
-
For Nord (nord-vim)
for dein.vim
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')
[[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'
TODO
If true, it uses glyphs for Powerline. You should use this options with fonts from powerline-fonts or natively supported ones such as Iosevka.
If true, it uses glyphs for nerd-fonts. You should use this options with patched fonts.
Can be set solarized_improved
(Default) or nord_improved
.
Enable tagbar feature. See below.
Enable gitgutter feature. See below.
Can be set solarized_improved
(Default) or nord_improved
.
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) . ' ']
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.
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.
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.
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