chore: sync nvim with latop config
This commit is contained in:
19
.config/nvim/lua/plugins/auto-save.lua
Normal file
19
.config/nvim/lua/plugins/auto-save.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return{
|
||||
"okuuva/auto-save.nvim",
|
||||
--version = '*', -- see https://devhints.io/semver, alternatively use '*' to use the latest tagged release
|
||||
cmd = "ASToggle", -- optional for lazy loading on command
|
||||
execution_message = {
|
||||
message = function() -- message to print on save
|
||||
return ("AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"))
|
||||
end,
|
||||
dim = 0.18, -- dim the color of `message`
|
||||
cleaning_interval = 1250, -- (milliseconds) automatically clean MsgArea after displaying `message`. See :h MsgArea
|
||||
},
|
||||
event = { "InsertLeave", "TextChanged" }, -- optional for lazy loading on trigger events
|
||||
opts = {
|
||||
-- your config goes here
|
||||
-- or just leave it empty :)
|
||||
enabled = false,
|
||||
debug = true,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user