mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-08 13:10:25 +00:00
9c1a3ad2a2
takes less lines, looks much better
remove neoscroll.lua, missed in 2952f4d5c7
22 lines
597 B
Lua
22 lines
597 B
Lua
-- autosave.nvim plugin disabled by default
|
|
local present, autosave = pcall(require, "autosave")
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
autosave.setup(
|
|
{
|
|
enabled = vim.g.auto_save, -- takes boolean value from init.lua
|
|
execution_message = "autosaved at : " .. vim.fn.strftime("%H:%M:%S"),
|
|
events = {"InsertLeave", "TextChanged"},
|
|
conditions = {
|
|
exists = true,
|
|
filetype_is_not = {},
|
|
modifiable = true
|
|
},
|
|
write_all_buffers = false,
|
|
on_off_commands = true,
|
|
clean_command_line_interval = 2500
|
|
}
|
|
)
|