diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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) .. ")") |