diff options
author | Max Christian Pohle | 2017-07-07 12:12:51 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-07-07 12:12:51 +0200 |
commit | d7d4eadb02b1fc43da22c2d0fc129ff4f538ef65 (patch) | |
tree | 974b3709aab9b83a6ed95bb27cc5036c4a4b58ef | |
parent | 75559a5e7f9e91fc349a956bf1d08f5ac06d1e9a (diff) | |
download | vim-d7d4eadb02b1fc43da22c2d0fc129ff4f538ef65.tar.bz2 vim-d7d4eadb02b1fc43da22c2d0fc129ff4f538ef65.zip |
Improved lightline, added branchname & current tag
-rw-r--r-- | vimrc-full | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | set" vim: tabstop=2 softtabstop=2 shiftwidth=2 textwidth=160 iskeyword+=\: | 1 | " vim: tabstop=2 softtabstop=2 shiftwidth=2 textwidth=160 iskeyword+=\: |
2 | 2 | ||
3 | set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) | 3 | set encoding=utf-8 | " set up vim's cosole encoding (not file encoding, for which there is fileencoding=) |
4 | set t_Co=256 | " required on some ssh sessions | 4 | set t_Co=256 | " required on some ssh sessions |
@@ -223,8 +223,9 @@ let g:lightline = { | |||
223 | \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, | 223 | \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" }, |
224 | \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, | 224 | \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }, |
225 | \ 'active': { | 225 | \ 'active': { |
226 | \ 'left': [ [ 'mode', 'paste' ], | 226 | \ 'left': [ [ 'mode', 'paste', 'readonly' ], |
227 | \ [ 'absolutepath', 'readonly' ] ], | 227 | \ [ 'gitbranch', 'absolutepath' ], |
228 | \ [ 'tagbar' ] ], | ||
228 | \ 'right': [ [ 'lineinfo', 'percent' ], | 229 | \ 'right': [ [ 'lineinfo', 'percent' ], |
229 | \ [ 'spell', 'fileencoding', 'fileformat', 'filetype' ] ], | 230 | \ [ 'spell', 'fileencoding', 'fileformat', 'filetype' ] ], |
230 | \ }, | 231 | \ }, |
@@ -232,6 +233,9 @@ let g:lightline = { | |||
232 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], | 233 | \ 'left': [ [ 'bufferinfo' ], [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], |
233 | \ 'right': [ [ 'close' ], [ 'getcwd', 'gitbranch'] ], | 234 | \ 'right': [ [ 'close' ], [ 'getcwd', 'gitbranch'] ], |
234 | \ }, | 235 | \ }, |
236 | \ 'component': { | ||
237 | \ 'tagbar': '%{tagbar#currenttag("%s", "", "f")}', | ||
238 | \ }, | ||
235 | \ 'component_expand': { | 239 | \ 'component_expand': { |
236 | \ 'buffercurrent': 'lightline#buffer#buffercurrent2', | 240 | \ 'buffercurrent': 'lightline#buffer#buffercurrent2', |
237 | \ }, | 241 | \ }, |
@@ -244,8 +248,8 @@ let g:lightline = { | |||
244 | \ 'bufferinfo': 'lightline#buffer#bufferinfo', | 248 | \ 'bufferinfo': 'lightline#buffer#bufferinfo', |
245 | \ 'filetype': 'MyFiletype', | 249 | \ 'filetype': 'MyFiletype', |
246 | \ 'fileformat': 'MyFileformat', | 250 | \ 'fileformat': 'MyFileformat', |
247 | \ 'gitbranch': 'MyBranchname', | ||
248 | \ 'getcwd': 'getcwd', | 251 | \ 'getcwd': 'getcwd', |
252 | \ 'gitbranch': 'fugitive#head' | ||
249 | \ }, | 253 | \ }, |
250 | \ } | 254 | \ } |
251 | 255 | ||