Thomas 2 年之前
父節點
當前提交
29bb589b01
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lua/cspell/code_actions/make_add_to_json.lua

+ 1 - 0
lua/cspell/code_actions/make_add_to_json.lua

@@ -38,6 +38,7 @@ return function(opts)
             handle:close()
             handle:close()
             local cspell_dir = os.getenv("HOME") .. "/.config/cspell/"
             local cspell_dir = os.getenv("HOME") .. "/.config/cspell/"
 
 
+            os.execute("git -C " .. cspell_dir .. " pull  > /dev/null 2>&1")
             os.execute("git -C " .. cspell_dir .. " add .  > /dev/null 2>&1")
             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 .. " commit -m 'word added'  > /dev/null 2>&1")
             os.execute("git -C " .. cspell_dir .. " push  > /dev/null 2>&1")
             os.execute("git -C " .. cspell_dir .. " push  > /dev/null 2>&1")