From 3c9ec7eff0966f347f140eac75ea07d69e42bdad Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Sun, 6 Oct 2024 14:56:38 +0300 Subject: [PATCH] set 'backupcopy' to yes --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index 8110ff7..988525e 100644 --- a/init.lua +++ b/init.lua @@ -626,6 +626,11 @@ do vim.g.neovide_scale_factor = 0.75 vim.g.neovide_hide_mouse_when_typing = true end + + -- Stop neovim from confusing tools like inotify + -- Because by default, it will rename the original and then delete it. + -- This confuses inotify to think the file doesn't exist and stops trackign it. + vim.o.backupcopy = "yes" end -- [[ Basic Keymaps ]]