vim: replace lightline with airline

feature/symbol-search
bretello 2020-12-07 15:36:18 +01:00
parent a24e5efa7b
commit 5bf9ace8fb
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
2 changed files with 24 additions and 33 deletions

View File

@ -87,35 +87,27 @@ let g:gitgutter_sign_modified_removed = 'x'
" highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red " highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
" highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red " highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red
" Lightline config from amix's vimrc " TODO: this could be improved " Airline config
let g:lightline = { set laststatus=2
\ 'colorscheme': 'wombat', let g:airline#extensions#tabline#enabled = 1
\ 'active': { let g:airline_theme='gruvbox'
\ 'left': [ ['mode', 'paste'], " " default linenr symbol is '☰' and it sucks
\ ['fugitive', 'readonly', 'filename', 'modified'] ], " let g:airline_symbols.linenr = ''
\ 'right': [ [ 'lineinfo' ], ['percent'] ] " " powerline symbols
\ }, if !exists('g:airline_symbols')
\ 'component': { let g:airline_symbols = {}
\ 'readonly': '%{&filetype=="help"?"":&readonly?"¿":""}', endif
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', let g:airline_left_sep = ''
\ 'fugitive': '%{exists("*FugitiveHead")?FugitiveHead():""}' let g:airline_left_alt_sep = ''
\ }, let g:airline_right_sep = ''
\ 'component_visible_condition': { let g:airline_right_alt_sep = ''
\ 'readonly': '(&filetype!="help"&& &readonly)', " let g:airline_symbols = {}
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', let g:airline_symbols.branch = ''
\ 'fugitive': '(exists("*FugitiveHead") && ""!=FugitiveHead())' let g:airline_symbols.readonly = ''
\ }, "let g:airline_symbols.linenr = '☰'
\ 'separator': { 'left': ' ', 'right': ' ' }, let g:airline_symbols.linenr = ''
\ 'subseparator': { 'left': ' ', 'right': ' ' } "let g:airline_symbols.maxlinenr = ''
\ } " let g:airline_symbols.dirty='⚡'
let g:lightline.component_expand = {
\ 'linter_checking': 'lightline#ale#checking',
\ 'linter_infos': 'lightline#ale#infos',
\ 'linter_warnings': 'lightline#ale#warnings',
\ 'linter_errors': 'lightline#ale#errors',
\ 'linter_ok': 'lightline#ale#ok',
\ }
" These are the default mappings for vim-multi-cursor " These are the default mappings for vim-multi-cursor
let g:multi_cursor_start_word_key = '<C-n>' let g:multi_cursor_start_word_key = '<C-n>'

View File

@ -21,10 +21,9 @@ Plug 'https://github.com/tpope/vim-fugitive'
Plug 'https://github.com/tpope/vim-commentary' Plug 'https://github.com/tpope/vim-commentary'
" Browse file system " Browse file system
Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" Minimal status line " status line
Plug 'https://github.com/itchyny/lightline.vim' Plug 'vim-airline/vim-airline'
" Lightline status for ALE Plug 'vim-airline/vim-airline-themes'
Plug 'maximbaz/lightline-ale'
" Insert parentheses in pairs " Insert parentheses in pairs
Plug 'https://github.com/jiangmiao/auto-pairs' Plug 'https://github.com/jiangmiao/auto-pairs'
Plug 'https://github.com/amix/open_file_under_cursor.vim' Plug 'https://github.com/amix/open_file_under_cursor.vim'