mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-08-16 02:44:35 +00:00
BREAKING CHANGES: plugin rewrite
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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").options
|
||||
|
||||
command("AToggle", function()
|
||||
require("auto-save").toggle()
|
||||
end, {})
|
||||
|
||||
if cnf.enabled then
|
||||
require("auto-save").on()
|
||||
end
|
||||
Reference in New Issue
Block a user