From 8f16e1fd0ce71a409ec837eeac9aba92f9e6b128 Mon Sep 17 00:00:00 2001 From: Ethan Wu Date: Thu, 11 Jul 2024 15:23:59 -0700 Subject: [PATCH] fix(lockfile): ensure newline at EOF for lockfile Text files should end with a newline. This also lets you manually edit the lockfile in vim without 'fixeol' creating a spurious change for the added newline. This change however will create a change in users' lockfiles adding a newline upon updating, but since the lockfile would be changing anyways to update lazy.nvim itself, this is likely acceptable. --- lua/lazy/manage/lock.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/manage/lock.lua b/lua/lazy/manage/lock.lua index a1b4c74..b3c4444 100644 --- a/lua/lazy/manage/lock.lua +++ b/lua/lazy/manage/lock.lua @@ -42,7 +42,7 @@ function M.update() f:write(",\n") end end - f:write("\n}") + f:write("\n}\n") f:close() end