Skip to content

Commit 02f82ad

Browse files
committed
Lihtlime integration.
1 parent 1ba5316 commit 02f82ad

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@
5252
[submodule "bundle/dbext"]
5353
path = bundle/dbext
5454
url = https://github.com/vim-scripts/dbext.vim.git
55+
[submodule "/home/christophe/.vim/bundle/lightline"]
56+
path = /home/christophe/.vim/bundle/lightline
57+
url = https://github.com/itchyny/lightline.vim

vimrc

+29-5
Original file line numberDiff line numberDiff line change
@@ -258,23 +258,47 @@ let g:pylint_onwrite = 0
258258

259259
if ! &diff
260260
set laststatus=2
261-
set statusline=%{buftabs#statusline()}%<%=%-16(%h%m%r%)%-12.(%l,%c%)\ %P
261+
"set statusline=%{buftabs#statusline()}%<%=%-16(%h%m%r%)%-12.(%l,%c%)\ %P
262262

263263
let g:buftabs_in_statusline = 1
264+
let g:buftabs_only_basename = 1
264265
let g:buftabs_marker_start = '['
265266
let g:buftabs_marker_end = ']'
266267
let g:buftabs_separator = ' '
267-
let g:buftabs_marker_modified = '*'
268-
let g:buftabs_only_basename = 1
268+
let g:buftabs_marker_modified = ''
269269
endif
270270

271271

272272
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
273-
" PLUGIN: ACP
273+
" PLUGIN: Lightlime
274274
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
275275

276-
let g:acp_enableAtStartup = 0
276+
let g:lightline = {
277+
\ 'active': {
278+
\ 'left': [ [ 'mode', 'paste' ],
279+
\ [ 'fugitive' ], [ 'readonly', 'filename', 'modified' ] ]
280+
\ },
281+
\ 'component': {
282+
\ 'readonly': '%{&filetype=="help"?"":&readonly?"":""}',
283+
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
284+
\ 'fugitive': '%{exists("*fugitive#head")?" ".fugitive#head():""}',
285+
\ 'filename': '%{buftabs#statusline()}'
286+
\ },
287+
\ 'component_visible_condition': {
288+
\ 'readonly': '(&filetype != "help" && &readonly)',
289+
\ 'modified': '(&filetype != "help" && (&modified || !&modifiable))',
290+
\ 'fugitive': '(exists("*fugitive#head") && "" != fugitive#head())'
291+
\ },
292+
\ 'separator': { 'left': '', 'right': '' },
293+
\ 'subseparator': { 'left': '', 'right': '' }
294+
\ }
295+
296+
297+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
298+
" PLUGIN: ACP
299+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
277300

301+
let g:acp_enableAtStartup = 1
278302

279303
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
280304
" Key mappings

0 commit comments

Comments
 (0)