mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:10:05 +08:00
24 lines
689 B
Plaintext
24 lines
689 B
Plaintext
Include: include/setup.vader
|
|
|
|
Execute (Credo: postprocess: type):
|
|
function! s:F(entry)
|
|
call neomake#makers#ft#elixir#PostprocessCredo(a:entry)
|
|
return a:entry
|
|
endfunction
|
|
AssertEqual s:F({'type': 'C'}).type, 'W'
|
|
AssertEqual s:F({'type': 'F'}).type, 'W'
|
|
|
|
let g:neomake_elixir_credo_config_typemap = {'F': 'Z'}
|
|
AssertEqual s:F({'type': 'F'}).type, 'Z'
|
|
|
|
Execute (Mix: postprocess: line is never higher than buffer size):
|
|
function! s:F(entry)
|
|
call neomake#makers#ft#elixir#PostprocessEnforceMaxBufferLine(a:entry)
|
|
return a:entry
|
|
endfunction
|
|
norm! ggdG
|
|
norm! iline1
|
|
norm! oline2
|
|
AssertEqual s:F({'lnum': 3}).lnum, 2
|
|
AssertEqual s:F({'lnum': 1}).lnum, 1
|