Files
auto-save.nvim/plugin/auto-save.lua
Oula Kuuva 343bbfa98a style: autoformat all the things
Namely: applied stylua to the whole repo and ran marksman on README.md.
2023-03-21 08:57:03 +02:00

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