diff options
Diffstat (limited to 'autoload/terraform.vim')
-rw-r--r-- | autoload/terraform.vim | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/autoload/terraform.vim b/autoload/terraform.vim index da36751e..b156b6b9 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -31,33 +31,34 @@ function! terraform#align() endif endfunction -function! terraform#commands(A, L, P) - return [ - \ 'apply', - \ 'console', - \ 'destroy', - \ 'env', - \ 'fmt', - \ 'get', - \ 'graph', - \ 'import', - \ 'init', - \ 'output', - \ 'plan', - \ 'providers', - \ 'refresh', - \ 'show', - \ 'taint', - \ 'untaint', - \ 'validate', - \ 'version', - \ 'workspace', - \ '0.12upgrade', - \ 'debug', - \ 'force-unlock', - \ 'push', - \ 'state' +function! terraform#commands(ArgLead, CmdLine, CursorPos) + let l:commands = [ + \ 'apply', + \ 'console', + \ 'destroy', + \ 'env', + \ 'fmt', + \ 'get', + \ 'graph', + \ 'import', + \ 'init', + \ 'output', + \ 'plan', + \ 'providers', + \ 'refresh', + \ 'show', + \ 'taint', + \ 'untaint', + \ 'validate', + \ 'version', + \ 'workspace', + \ '0.12upgrade', + \ 'debug', + \ 'force-unlock', + \ 'push', + \ 'state' \ ] + return join(l:commands, "\n") endfunction endif |