aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-06-21 16:05:28 +0200
committerMatěj Cepl <mcepl@cepl.eu>2023-06-21 16:05:28 +0200
commit89e27b5e7acfa274099feb2cd6dd6da010ade33a (patch)
treef837639a074ae4ef94260aa371e907d49c02058a
parent6581c96b6b347536d84029db39909c5d72a00848 (diff)
downloadvis-par-89e27b5e7acfa274099feb2cd6dd6da010ade33a.tar.gz
Remove all mentions of spellchecking from the original example.
-rw-r--r--init.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 65a7991..8bcba8e 100644
--- a/init.lua
+++ b/init.lua
@@ -48,12 +48,11 @@ local supress_stdout = " >/dev/null"
local supress_stderr = " 2>/dev/null"
local supress_output = supress_stdout .. supress_stderr
--- Return nil or a string of misspelled word in a specific file range or text
--- by calling the spellchecker's list command.
--- If given a range we will use vis:pipe to get our typos from the spellchecker.
--- If a string was passed we call the spellchecker ourself and redirect its stdout
+-- Return nil or a string of formatted text from a specific file range or text
+-- by calling the formatter command.
+-- If given a range we will use vis:pipe to get the output from the formatter.
+-- If a string was passed we call the formatter ourself and redirect its stdout
-- to a temporary file. See http://lua-users.org/lists/lua-l/2007-10/msg00189.html.
--- The returned string consists of each misspell followed by a newline.
local function run_shell_cmd(cmd, params, inp)
local out
print("cmd = " .. cmd .. ", params = " .. params .. ", inp = " .. inp .. ", (" .. type(inp) .. ")")