Skip to content

lightline.vim component showing numbers of make warnings and errors for neomake

Notifications You must be signed in to change notification settings

mkalinski/vim-lightline_neomake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lightline_neomake

Vim plugin providing a function intended as a tab component for lightline.vim.

Displays the number of warnings and errors for a file, after Neomake finishes making it.

Usage

The function lightline_neomake#component returns a string with names of each non-zero Neomake counter ("W", "E", etc.) and their values. It can be used with component_expand and component_type to color the component.

let g:lightline = {
\   'active': {
\       'right': [
\           ['neomake', 'lineinfo'],
\           ['percent'],
\           ['fileformat', 'fileencoding', 'filetype'],
\       ],
\   },
\   'component_expand': {
\       'neomake': 'lightline_neomake#component',
\   },
\   'component_type': {
\       'neomake': 'error',
\   },
\}

Configuration

Default values are shown in examples.

" printf-compatible string that accepts two values: the first is the symbol of
" a Neomake counter ('E' for errors, 'W' for warnings, etc.), the second is the
" number of occurrances in the buffer.
let g:lightline_neomake#format = '%s: %d'

" Separator between displayed Neomake counters.
let g:lightline_neomake#sep = ' '

About

lightline.vim component showing numbers of make warnings and errors for neomake

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published