Thomas 2 жил өмнө
parent
commit
29bb589b01

+ 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")