Skip to content

Commit 564369d

Browse files
committed
Update the minimum supported Neovim version to 0.7
1 parent 9275366 commit 564369d

File tree

7 files changed

+30
-33
lines changed

7 files changed

+30
-33
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM testbed/vim:${TESTBED_VIM_VERSION}
44

55
RUN install_vim -tag v8.0.0027 -build \
66
-tag v9.0.0297 -build \
7-
-tag neovim:v0.6.0 -build \
7+
-tag neovim:v0.7.0 -build \
88
-tag neovim:v0.8.0 -build
99

1010
ENV PACKAGES="\

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
![ALE Logo by Mark Grealish - https://www.bhalash.com/](https://user-images.githubusercontent.com/3518142/59195920-2c339500-8b85-11e9-9c22-f6b7f69637b8.jpg)
66

77
ALE (Asynchronous Lint Engine) is a plugin providing linting (syntax checking
8-
and semantic errors) in NeoVim 0.6.0+ and Vim 8.0+ while you edit your text files,
8+
and semantic errors) in Neovim 0.7.0+ and Vim 8.0+ while you edit your text files,
99
and acts as a Vim [Language Server Protocol](https://langserver.org/) client.
1010

1111
<video autoplay="true" muted="true" loop="true" controls="false" src="https://user-images.githubusercontent.com/3518142/210141215-8f2ff760-6a87-4704-a11e-c109b8e9ec41.mp4" title="An example showing what ALE can do."></video>
1212

13-
ALE makes use of NeoVim and Vim 8 job control functions and timers to
13+
ALE makes use of Neovim and Vim 8 job control functions and timers to
1414
run linters on the contents of text buffers and return errors as
1515
text is changed in Vim. This allows for displaying warnings and
1616
errors in files being edited in Vim before files have been saved
@@ -644,7 +644,7 @@ LSP features in ALE for different filetypes.
644644

645645
#### Neovim Diagnostics
646646

647-
If you are running Neovim 0.6 or later, you can make ALE display errors and
647+
If you are running Neovim 0.7 or later, you can make ALE display errors and
648648
warnings via the Neovim diagnostics API.
649649

650650
```vim

doc/ale-development.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ documented functions and options, until a major version is planned. Breaking
4848
changes should be preceded by a deprecation phase complete with warnings.
4949
Changes required for security may be an exception.
5050

51-
ALE supports Vim 8 and above, and NeoVim 0.6.0 or newer. These are the
52-
earliest versions of Vim and NeoVim which support |+job|, |+timer|,
51+
ALE supports Vim 8 and above, and Neovim 0.7.0 or newer. These are the
52+
earliest versions of Vim and Neovim which support |+job|, |+timer|,
5353
|+closure|, and |+lambda| features. All ALE code should be written so it is
5454
compatible with these versions of Vim, or with version checks so particular
5555
features can degrade or fail gracefully.
@@ -156,8 +156,8 @@ environments.
156156

157157
1. Vim 8.0.0027 on Linux via GitHub Actions.
158158
2. Vim 9.0.0297 on Linux via GitHub Actions.
159-
3. NeoVim 0.6.0 on Linux via GitHub Actions.
160-
4. NeoVim 0.8.0 on Linux via GitHub Actions.
159+
3. Neovim 0.7.0 on Linux via GitHub Actions.
160+
4. Neovim 0.8.0 on Linux via GitHub Actions.
161161
6. Vim 8 (stable builds) on Windows via AppVeyor.
162162

163163
If you are developing ALE code on Linux, Mac OSX, or BSD, you can run ALEs

doc/ale.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ circumstances.
121121
ALE will report problems with your code in the following ways, listed with
122122
their relevant options.
123123

124-
* Via Neovim diagnostics (On in Neovim 0.6+) - |g:ale_use_neovim_diagnostics_api|
124+
* Via Neovim diagnostics (On in Neovim 0.7+) - |g:ale_use_neovim_diagnostics_api|
125125
* By updating loclist. (On by default) - |g:ale_set_loclist|
126126
* By updating quickfix. (Off by default) - |g:ale_set_quickfix|
127127
* By setting error highlights. - |g:ale_set_highlights|
@@ -2342,7 +2342,7 @@ g:ale_use_global_executables *g:ale_use_global_executables*
23422342
g:ale_use_neovim_diagnostics_api *g:ale_use_neovim_diagnostics_api*
23432343

23442344
Type: |Number|
2345-
Default: `has('nvim-0.6')`
2345+
Default: `has('nvim-0.7')`
23462346

23472347
If enabled, this option will disable ALE's standard UI, and instead send
23482348
all linter output to Neovim's diagnostics API. This allows you to collect
@@ -2352,7 +2352,7 @@ g:ale_use_neovim_diagnostics_api *g:ale_use_neovim_diagnostics_api*
23522352

23532353
To enable this option, set the value to `1`.
23542354

2355-
This option requires Neovim 0.6+, as that version introduces the diagnostics
2355+
This option requires Neovim 0.7+, as that version introduces the diagnostics
23562356
API.
23572357

23582358

plugin/ale.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let g:loaded_ale_dont_use_this_in_other_plugins_please = 1
1414

1515
" A flag for detecting if the required features are set.
1616
if has('nvim')
17-
" We check for NeoVim 0.2.0+, but we only officially support NeoVim 0.6.0
17+
" We check for Neovim 0.2.0+, but we only officially support NeoVim 0.7.0
1818
let s:has_features = has('timers') && has('nvim-0.2.0')
1919
else
2020
" Check if Job and Channel functions are available, instead of the
@@ -26,7 +26,7 @@ if !s:has_features
2626
" Only output a warning if editing some special files.
2727
if index(['', 'gitcommit'], &filetype) == -1
2828
" no-custom-checks
29-
echoerr 'ALE requires NeoVim >= 0.6.0 or Vim 8 with +timers +job +channel'
29+
echoerr 'ALE requires NeoVim >= 0.7.0 or Vim 8 with +timers +job +channel'
3030
" no-custom-checks
3131
echoerr 'Please update your editor appropriately.'
3232
endif
@@ -204,11 +204,11 @@ let g:ale_save_hidden = get(g:, 'ale_save_hidden', 0)
204204

205205
" If 1, disables ALE's built in error display. Instead, all errors are piped
206206
" to the diagnostics API.
207-
let g:ale_use_neovim_diagnostics_api = get(g:, 'ale_use_neovim_diagnostics_api', has('nvim-0.6'))
207+
let g:ale_use_neovim_diagnostics_api = get(g:, 'ale_use_neovim_diagnostics_api', has('nvim-0.7'))
208208

209-
if g:ale_use_neovim_diagnostics_api && !has('nvim-0.6')
209+
if g:ale_use_neovim_diagnostics_api && !has('nvim-0.7')
210210
" no-custom-checks
211-
echoerr('Setting g:ale_use_neovim_diagnostics_api to 1 requires Neovim 0.6+.')
211+
echoerr('Setting g:ale_use_neovim_diagnostics_api to 1 requires Neovim 0.7+.')
212212
endif
213213

214214
if g:ale_set_balloons is 1 || g:ale_set_balloons is# 'hover'

run-tests

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tests='test/*.vader test/*/*.vader test/*/*/*.vader'
2525
# These flags are forwarded to the script for running Vader tests.
2626
verbose_flag=''
2727
quiet_flag=''
28-
run_neovim_06_tests=1
28+
run_neovim_07_tests=1
2929
run_neovim_08_tests=1
3030
run_vim_80_tests=1
3131
run_vim_90_tests=1
@@ -44,7 +44,7 @@ while [ $# -ne 0 ]; do
4444
--build-image)
4545
run_vim_80_tests=0
4646
run_vim_90_tests=0
47-
run_neovim_06_tests=0
47+
run_neovim_07_tests=0
4848
run_neovim_08_tests=0
4949
run_linters=0
5050
shift
@@ -55,35 +55,35 @@ while [ $# -ne 0 ]; do
5555
run_linters=0
5656
shift
5757
;;
58-
--neovim-06-only)
58+
--neovim-07-only)
5959
run_neovim_08_tests=0
6060
run_vim_80_tests=0
6161
run_vim_90_tests=0
6262
run_linters=0
6363
shift
6464
;;
6565
--neovim-08-only)
66-
run_neovim_06_tests=0
66+
run_neovim_07_tests=0
6767
run_vim_80_tests=0
6868
run_vim_90_tests=0
6969
run_linters=0
7070
shift
7171
;;
7272
--vim-only)
73-
run_neovim_06_tests=0
73+
run_neovim_07_tests=0
7474
run_neovim_08_tests=0
7575
run_linters=0
7676
shift
7777
;;
7878
--vim-80-only)
79-
run_neovim_06_tests=0
79+
run_neovim_07_tests=0
8080
run_neovim_08_tests=0
8181
run_vim_90_tests=0
8282
run_linters=0
8383
shift
8484
;;
8585
--vim-90-only)
86-
run_neovim_06_tests=0
86+
run_neovim_07_tests=0
8787
run_neovim_08_tests=0
8888
run_vim_80_tests=0
8989
run_linters=0
@@ -92,14 +92,14 @@ while [ $# -ne 0 ]; do
9292
--linters-only)
9393
run_vim_80_tests=0
9494
run_vim_90_tests=0
95-
run_neovim_06_tests=0
95+
run_neovim_07_tests=0
9696
run_neovim_08_tests=0
9797
shift
9898
;;
9999
--fast)
100100
run_vim_80_tests=0
101101
run_vim_90_tests=0
102-
run_neovim_06_tests=0
102+
run_neovim_07_tests=0
103103
run_neovim_08_tests=1
104104
shift
105105
;;
@@ -113,9 +113,9 @@ while [ $# -ne 0 ]; do
113113
echo ' -v Enable verbose output'
114114
echo ' -q Hide output for successful tests'
115115
echo ' --build-image Run docker image build only.'
116-
echo ' --neovim-only Run tests only for NeoVim'
117-
echo ' --neovim-06-only Run tests only for NeoVim 0.2'
118-
echo ' --neovim-08-only Run tests only for NeoVim 0.8'
116+
echo ' --neovim-only Run tests only for Neovim'
117+
echo ' --neovim-07-only Run tests only for Neovim 0.7'
118+
echo ' --neovim-08-only Run tests only for Neovim 0.8'
119119
echo ' --vim-only Run tests only for Vim'
120120
echo ' --vim-80-only Run tests only for Vim 8.2'
121121
echo ' --vim-90-only Run tests only for Vim 9.0'
@@ -165,7 +165,7 @@ elif [[ "$DOCKER" == podman ]]; then
165165
arch="x86_64"
166166
fi
167167
else
168-
echo "The DOCKER environnement variable must be docker or podman, not ${DOCKER}"
168+
echo "The DOCKER environment variable must be docker or podman, not ${DOCKER}"
169169
exit 1
170170
fi
171171

@@ -240,7 +240,7 @@ trap cancel_tests INT TERM
240240
for vim in $("$DOCKER" run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neovim\|^vim' ); do
241241
if ( [[ $vim =~ ^vim-v8.0 ]] && ((run_vim_80_tests)) ) \
242242
|| ( [[ $vim =~ ^vim-v9.0 ]] && ((run_vim_90_tests)) ) \
243-
|| ( [[ $vim =~ ^neovim-v0.6 ]] && ((run_neovim_06_tests)) ) \
243+
|| ( [[ $vim =~ ^neovim-v0.7 ]] && ((run_neovim_07_tests)) ) \
244244
|| ( [[ $vim =~ ^neovim-v0.8 ]] && ((run_neovim_08_tests)) ); then
245245
echo "Starting Vim: $vim..."
246246
file_number=$((file_number+1))

test/script/run-vader-tests

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ tests="$2"
4040
echo "$vim"
4141

4242
case $vim in
43-
neovim-v0.2*)
44-
headless=''
45-
;;
4643
# Neovim 0.6+ requires headless argument to load Vader tests.
4744
neovim*)
4845
headless='--headless'

0 commit comments

Comments
 (0)