fix: ASToggle command

This commit is contained in:
Pocco81
2022-07-31 00:49:15 -05:00
parent 0288839edd
commit 6ebf09ac62
3 changed files with 4 additions and 2 deletions

View File

@@ -137,8 +137,10 @@ end
function M.toggle()
if autosave_running then
M.off()
echo("off")
else
M.on()
echo("on")
end
end

View File

@@ -20,6 +20,6 @@ return function(msg, kind)
title = TITLE,
})
else
vim.notify(("%s (%s): %s"):format(TITLE, level.type, msg), level.log)
vim.notify(("%s: %s"):format(TITLE, msg), level.log)
end
end

View File

@@ -6,7 +6,7 @@ vim.g.loaded_auto_save = true
local command = vim.api.nvim_create_user_command
local cnf = require("auto-save.config").options
command("AToggle", function()
command("ASToggle", function()
require("auto-save").toggle()
end, {})