aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2018-05-04 12:49:42 -0700
committermitermayer <mitermayer.reis@gmail.com>2018-05-04 12:49:42 -0700
commit7bb76288d4c8edf162c24f20fc939bff289857bf (patch)
tree7f989ee847e4df26aa7aed32de4d177f62c972d6 /autoload
parent0feb9565771ed0210e45e7226edc6d8185a8ce4f (diff)
downloadvim-prettier-7bb76288d4c8edf162c24f20fc939bff289857bf.tar.xz
Simple heading comments
Diffstat (limited to 'autoload')
-rw-r--r--autoload/prettier.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index a25459d..63a72d2 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -13,6 +13,7 @@
let s:prettier_job_running = 0
+" Displays the resolve prettier CLI path
function! prettier#PrettierCliPath() abort
let l:execCmd = prettier#resolver#executable#getPath()
@@ -23,6 +24,7 @@ function! prettier#PrettierCliPath() abort
endif
endfunction
+" Allows user commands to be passed straight to the prettier CLI
function! prettier#PrettierCli(user_input) abort
let l:execCmd = prettier#resolver#executable#getPath()
@@ -34,6 +36,7 @@ function! prettier#PrettierCli(user_input) abort
endif
endfunction
+" Main prettier command
function! prettier#Prettier(...) abort
let l:execCmd = prettier#resolver#executable#getPath()
let l:async = a:0 > 0 ? a:1 : 0