Files
auto-save.nvim/plugin/auto-save.lua
Oula Kuuva fc7c13d755 style: add and apply stylua config
Made it compatible with the .editorconfig already present and didn't
introduce any bells and whistles beyond that. Fixed the typo in
.editorconfig indent_style while I was at it.
2023-02-12 17:39:05 +02:00

16 lines
292 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