Thomas %!s(int64=2) %!d(string=hai) anos
pai
achega
29bb589b01
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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")