Thomas 2 năm trước cách đây
mục cha
commit
29bb589b01
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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()
             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 .. " commit -m 'word added'  > /dev/null 2>&1")
             os.execute("git -C " .. cspell_dir .. " push  > /dev/null 2>&1")