mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-06-01 02:08:05 +00:00
@@ -1,15 +1,5 @@
|
||||
if vim.g.loaded_auto_save then
|
||||
return
|
||||
end
|
||||
vim.g.loaded_auto_save = true
|
||||
|
||||
local command = vim.api.nvim_create_user_command
|
||||
local cnf = require("auto-save.config").opts
|
||||
|
||||
command("ASToggle", function()
|
||||
require("auto-save").toggle()
|
||||
end, {})
|
||||
|
||||
if cnf.enabled then
|
||||
require("auto-save").on()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user