diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,9 @@ require('vis') +par_prg = nil vis:operator_new("gq", function(file, range, pos) - local status, out, err = vis:pipe(file, range, "fmt -c -w 65") + local prg = (par_prg ~= nil) and par_prg or "fmt -c -w 65" + local status, out, err = vis:pipe(file, range, prg) -- local status, out, err = vis:pipe(file, range, "par -w 65") if not status then vis:info(err) |