mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-08-05 21:57:13 +00:00
Namely: applied stylua to the whole repo and ran marksman on README.md.
16 lines
295 B
Lua
16 lines
295 B
Lua
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
|