mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 09:50:04 +08:00
20 lines
642 B
Plaintext
20 lines
642 B
Plaintext
Include: ../include/setup.vader
|
|
|
|
Execute (Signs are not wiped when buffer gets wiped with removed augroup):
|
|
new
|
|
au! neomake_signs
|
|
let buf = bufnr('%')
|
|
call neomake#signs#PlaceSigns(bufnr('%'),
|
|
\ [{'type': 'E', 'bufnr': buf, 'lnum': 1}], 'file')
|
|
AssertEqual neomake#signs#by_lnum(bufnr('%')), {'1': [[5000, 'neomake_file_err']]}
|
|
bwipe
|
|
|
|
AssertEqual neomake#signs#by_lnum(buf), {}
|
|
call neomake#signs#ResetFile(buf)
|
|
AssertNeomakeMessage 'Skipped cleaning of old signs in non-existing buffer '.buf.': {5000: neomake_file_err}.', 3
|
|
|
|
" Restore if not profiling.
|
|
if !v:profiling
|
|
runtime autoload/neomake/signs.vim
|
|
endif
|