diff options
author | w0rp <devw0rp@gmail.com> | 2018-05-28 19:39:49 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-05-28 19:39:49 +0100 |
commit | c0a279f967ea9272b47063b52374730ad596f159 (patch) | |
tree | f45b0c97cca2183da126506d3bb2f9dd4b2f2dbe | |
parent | f2837b5802c14e0fcdddf1af7caab0fb96858589 (diff) | |
download | ale-c0a279f967ea9272b47063b52374730ad596f159.zip |
Indicate things to be removed in version 2.0
-rw-r--r-- | autoload/ale/engine.vim | 1 | ||||
-rw-r--r-- | autoload/ale/statusline.vim | 4 | ||||
-rw-r--r-- | plugin/ale.vim | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index b489c5f4..10589869 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -367,6 +367,7 @@ function! ale#engine#SetResults(buffer, loclist) abort " Call user autocommands. This allows users to hook into ALE's lint cycle. silent doautocmd <nomodeline> User ALELintPost + " remove in 2.0 " Old DEPRECATED name; call it for backwards compatibility. silent doautocmd <nomodeline> User ALELint endif diff --git a/autoload/ale/statusline.vim b/autoload/ale/statusline.vim index 368cdd73..851618cc 100644 --- a/autoload/ale/statusline.vim +++ b/autoload/ale/statusline.vim @@ -1,6 +1,8 @@ " Author: KabbAmine <amine.kabb@gmail.com> " Description: Statusline related function(s) +" remove in 2.0 +" " A deprecated setting for ale#statusline#Status() " See :help ale#statusline#Count() for getting status reports. let g:ale_statusline_format = get(g:, 'ale_statusline_format', @@ -96,6 +98,8 @@ function! s:StatusForListFormat() abort return l:res endfunction +" remove in 2.0 +" " Returns a formatted string that can be integrated in the statusline. " " This function is deprecated, and should not be used. Use the airline plugin diff --git a/plugin/ale.vim b/plugin/ale.vim index 997a1963..bea5a49e 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -32,6 +32,7 @@ if !s:has_features finish endif +" remove in 2.0 if has('nvim') && !has('nvim-0.2.0') && !get(g:, 'ale_use_deprecated_neovim') execute 'echom ''ALE support for NeoVim versions below 0.2.0 is deprecated.''' execute 'echom ''Use `let g:ale_use_deprecated_neovim = 1` to silence this warning for now.''' @@ -233,6 +234,7 @@ augroup END " Backwards Compatibility +" remove in 2.0 function! ALELint(delay) abort if !get(g:, 'ale_deprecation_ale_lint', 0) execute 'echom ''ALELint() is deprecated, use ale#Queue() instead.''' @@ -242,6 +244,7 @@ function! ALELint(delay) abort call ale#Queue(a:delay) endfunction +" remove in 2.0 function! ALEGetStatusLine() abort if !get(g:, 'ale_deprecation_ale_get_status_line', 0) execute 'echom ''ALEGetStatusLine() is deprecated.''' |