|
|
@@ -38,9 +38,9 @@ return function(opts)
|
|
|
handle:close()
|
|
|
local cspell_dir = os.getenv("HOME") .. "/.config/cspell/"
|
|
|
|
|
|
- os.execute("git -C " .. cspell_dir .. " add .")
|
|
|
- os.execute("git -C " .. cspell_dir .. " commit -m 'word added'")
|
|
|
- os.execute("git -C " .. cspell_dir .. " push")
|
|
|
+ os.execute("git -C " .. cspell_dir .. " add . > /dev/null 2>&1")
|
|
|
+ os.execute("git -C " .. cspell_dir .. " commit -m 'word added' > /dev/null 2>&1")
|
|
|
+ os.execute("git -C " .. cspell_dir .. " push > /dev/null 2>&1")
|
|
|
|
|
|
-- replace word in buffer to trigger cspell to update diagnostics
|
|
|
h.set_word(opts.diagnostic, opts.word)
|