|
|
@@ -37,10 +37,14 @@ return function(opts)
|
|
|
local pwd = handle:read("a*")
|
|
|
handle:close()
|
|
|
|
|
|
- os.execute("cd " .. os.getenv("HOME") .. "/.config/cspell/")
|
|
|
- os.execute("git add .")
|
|
|
- os.execute("git commit -m 'word added'")
|
|
|
- os.execute("git push")
|
|
|
+ local cc = os.execute("cd " .. os.getenv("HOME") .. "/.config/cspell/")
|
|
|
+ vim.notify("Created a new cspell.json file at " .. cc, vim.log.levels.INFO)
|
|
|
+ local cc = os.execute("git add .")
|
|
|
+vim.notify("add" .. cc, vim.log.levels.INFO)
|
|
|
+ local cc = os.execute("git commit -m 'word added'")
|
|
|
+vim.notify("comm" .. cc, vim.log.levels.INFO)
|
|
|
+ local cc = os.execute("git push")
|
|
|
+vim.notify("push " .. cc, vim.log.levels.INFO)
|
|
|
os.execute("cd " .. pwd)
|
|
|
|
|
|
-- replace word in buffer to trigger cspell to update diagnostics
|