summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins/auto-save.lua
blob: 4299d0deac2d41cfd834e9972e66a205efb218e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
return {
    'okuuva/auto-save.nvim',
    cmd = 'ASToggle',
    event = { 'InsertLeave', 'TextChanged' },
    opts = {
        execution_message = { enabled = false },
        condition = function(buf)
            return vim.fn.getbufvar(buf, '&buftype') == ''
        end,
    },
}