mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-28 04:22:27 +08:00
nix: handle versions past 2.9 (#4394)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
function! ale_linters#nix#nix#Command(buffer, output, meta) abort
|
||||
let l:version = a:output[0][22:]
|
||||
|
||||
if l:version =~# '^\(2.[4-9]\|3\).*'
|
||||
if l:version =~# '^\(2.[4-9]\|2.[1-9][0-9]\+\|3\).*'
|
||||
return 'nix-instantiate --log-format internal-json --parse -'
|
||||
else
|
||||
return 'nix-instantiate --parse -'
|
||||
|
||||
Reference in New Issue
Block a user