mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2025-12-06 06:36:11 +00:00
style: apply stylua
This commit is contained in:
@@ -88,27 +88,14 @@ function M.save(buf)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function echo_execution_message()
|
local function echo_execution_message()
|
||||||
local msg = type(cnf.opts.execution_message.message) == "function" and cnf.opts.execution_message.message() or cnf.opts.execution_message.message
|
local msg = type(cnf.opts.execution_message.message) == "function" and cnf.opts.execution_message.message()
|
||||||
|
or cnf.opts.execution_message.message
|
||||||
api.nvim_echo({ { msg, AUTO_SAVE_COLOR } }, true, {})
|
api.nvim_echo({ { msg, AUTO_SAVE_COLOR } }, true, {})
|
||||||
if cnf.opts.execution_message.cleaning_interval > 0 then
|
if cnf.opts.execution_message.cleaning_interval > 0 then
|
||||||
fn.timer_start(cnf.opts.execution_message.cleaning_interval, function()
|
fn.timer_start(cnf.opts.execution_message.cleaning_interval, function()
|
||||||
cmd([[echon '']])
|
cmd([[echon '']])
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
api.nvim_echo({
|
|
||||||
{
|
|
||||||
(
|
|
||||||
type(cnf.opts.execution_message.message) == "function" and cnf.opts.execution_message.message()
|
|
||||||
or cnf.opts.execution_message.message
|
|
||||||
),
|
|
||||||
AUTO_SAVE_COLOR,
|
|
||||||
},
|
|
||||||
}, true, {})
|
|
||||||
if cnf.opts.execution_message.cleaning_interval > 0 then
|
|
||||||
fn.timer_start(cnf.opts.execution_message.cleaning_interval, function()
|
|
||||||
cmd([[echon '']])
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local save_func = nil
|
local save_func = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user