summaryrefslogtreecommitdiff
path: root/autoload/ale/util.vim
diff options
context:
space:
mode:
authorDalius Dobravolskas <dalius.dobravolskas@gmail.com>2021-12-17 01:09:26 +0200
committerGitHub <noreply@github.com>2021-12-17 08:09:26 +0900
commit5b792c764196aeb45eb6025c6c1c9727084c2feb (patch)
treedf96221664bac924f584db5e25d5deb736e44a6a /autoload/ale/util.vim
parente4ec2e4dc74fc24d57fd74770d2aa277425dde7c (diff)
downloadale-5b792c764196aeb45eb6025c6c1c9727084c2feb.zip
ALEFileRename command added. (#4012)
* ALEFileRename command added. This command renames file and uses tsserver `getEditsForFileRename` to fix import paths in Typescript files. * ale#util#Input fix * Even more fixes. * Linting error fix.
Diffstat (limited to 'autoload/ale/util.vim')
-rw-r--r--autoload/ale/util.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim
index ec9383ac..c90229b4 100644
--- a/autoload/ale/util.vim
+++ b/autoload/ale/util.vim
@@ -491,8 +491,12 @@ function! ale#util#FindItemAtCursor(buffer) abort
return [l:info, l:loc]
endfunction
-function! ale#util#Input(message, value) abort
- return input(a:message, a:value)
+function! ale#util#Input(message, value, ...) abort
+ if a:0 > 0
+ return input(a:message, a:value, a:1)
+ else
+ return input(a:message, a:value)
+ endif
endfunction
function! ale#util#HasBuflineApi() abort