Thomas 2 anni fa
parent
commit
89265e206a
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      lua/cspell/code_actions/make_add_to_json.lua

+ 3 - 3
lua/cspell/code_actions/make_add_to_json.lua

@@ -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)