Updated Configuration Examples and Snippets (markdown)
parent
020a98b4d5
commit
2039cb845e
|
@ -117,7 +117,8 @@ call airline#parts#define('linenr', {'function': 'MyLineNumber', 'accents': 'bol
|
|||
let g:airline_section_z = airline#section#create(['%3p%%: ', 'linenr', ':%3v'])
|
||||
```
|
||||
## Integrate with CMake build system
|
||||
This example adds CMAKE_BUILD_TYPE and a custom defined cmake variable by peeking into the CMakeCache.txt
|
||||
![](https://github.com/raspine/assets/blob/master/cmakestat_small.png)
|
||||
This example adds the CMAKE_BUILD_TYPE and a user defined cmake variable by peeking into the CMakeCache.txt
|
||||
```viml
|
||||
function! CMakeStat()
|
||||
let l:cmake_build_dir = get(g:, 'cmake_build_dir', 'build')
|
||||
|
@ -143,4 +144,4 @@ endfunction
|
|||
|
||||
call airline#parts#define('cmake', {'function': 'CMakeStat'})
|
||||
let g:airline_section_b = airline#section#create_left(['cmake'])
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue