mirror of
https://github.com/dense-analysis/ale
synced 2025-01-09 15:59:52 +00:00
14350dbb0d
Make a series of sweeping changes to make :ALEInfo more useful. 1. Deprecate :ALEInfoToClipboard and support :ALEInfo -clipboard 2. Permit :ALEInfo -clip as a shorthand for :ALEInfo -clipboard 3. Support :ALEInfo -preview to render in the preview window 4. Support :ALEInfo -echo for the classic :ALEInfo mode 5. Change the default mode to 'preview', and make it configurable 6. Add syntax highlighting for ALEInfo in preview mode 7. Add a convenience to look up documentatation that explains itself 8. Don't show an empty 'Linter Variables' section
16 lines
408 B
Plaintext
16 lines
408 B
Plaintext
After:
|
|
unlet! g:output
|
|
|
|
Execute(ALEInfo -clipboard should that clipboard support is required):
|
|
" When run in the Docker image, there's no clipboard support, so this test
|
|
" will actually run.
|
|
if !has('clipboard')
|
|
let g:output = ''
|
|
|
|
redir => g:output
|
|
:ALEInfo -clipboard
|
|
redir END
|
|
|
|
AssertEqual 'clipboard not available. Try :ALEInfoToFile instead.', join(split(g:output))
|
|
endif
|