-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlightline_config.vim
45 lines (41 loc) · 1.18 KB
/
lightline_config.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
" Vim File
" AUTHOR: ci
" FILE: lightline_config.vim
" ROLE: TODO (some explanation)
" CREATED: 2017-03-31 23:27:24
" MODIFIED: 2017-04-01 01:27:46
if exists("did_lightline_config")
finish
endif
let did_lightline_config = 1
set laststatus=2
let g:lightline = {
\ 'colorscheme': 'landscape',
\ 'mode_map': {
\ 'c': 'SEARCH'
\ },
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified' ],
\ [ 'codeium'] ]
\ },
\ 'component': {
\ 'readonly': '%{&filetype=="help"?"":&readonly?"x":""}',
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}'
\ },
\ 'component_function': {
\ 'codeium': 'LightlineCodeiumStatus'
\ },
\ 'component_visible_condition': {
\ 'readonly': '(&filetype!="help"&& &readonly)',
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '|', 'right': '|' }
\ }
function! LightlineCodeiumStatus()
if exists('g:loaded_codeium')
return codeium#GetStatusString()
endif
return ''
endfunction