progress
This commit is contained in:
parent
42a3ec0172
commit
66c32e98f5
9 changed files with 230 additions and 96 deletions
|
@ -2,4 +2,15 @@ return {
|
|||
"Pocco81/auto-save.nvim",
|
||||
commit = "979b6c82f60cfa80f4cf437d77446d0ded0addf0", -- May 22, 2023
|
||||
event = "BufEnter",
|
||||
opts = {
|
||||
trigger_events = { "InsertLeave", "TextChanged", "TextChangedI", "BufLeave" },
|
||||
condition = function (buf)
|
||||
local disallowed_filetypes = {"TelescopePrompt"}
|
||||
local utils = require('auto-save.utils.data')
|
||||
if vim.fn.getbufvar(buf, "&modifiable") == 1 and utils.not_in(vim.fn.getbufvar(buf, "&filetype"), disallowed_filetypes) then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue