From cd88354c40dfa77357e82f0b3dfca21a62e5b68a Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 22 May 2024 13:35:53 +0300 Subject: [PATCH] ref --- home/user/.config/nvim/lua/plugins/auto_save.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/home/user/.config/nvim/lua/plugins/auto_save.lua b/home/user/.config/nvim/lua/plugins/auto_save.lua index dbf6ddb..aa3dce6 100644 --- a/home/user/.config/nvim/lua/plugins/auto_save.lua +++ b/home/user/.config/nvim/lua/plugins/auto_save.lua @@ -5,7 +5,7 @@ return { enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it) execution_message = { message = function() -- message to print on save - return "" + return "" end, dim = 0.18, -- dim the color of `message` cleaning_interval = 1250, -- (milliseconds) automatically clean MsgArea after displaying `message`. See :h MsgArea @@ -15,9 +15,10 @@ return { local fn = vim.fn local utils = require("auto-save.utils.data") if - fn.getbufvar(buf, "&modifiable") == 1 and - utils.not_in(fn.getbufvar(buf, "&filetype"), {}) then - return true -- met condition(s), can save + fn.getbufvar(buf, "&modifiable") == 1 and + utils.not_in(fn.getbufvar(buf, "&filetype"), {}) + then + return true -- met condition(s), can save end return false -- can't save end, @@ -32,4 +33,4 @@ return { } }) end -} +} \ No newline at end of file