Thomas 2 лет назад
Родитель
Сommit
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()
             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")