From 8e356ea49ade35fefe81575e26e2cc1e07cfcba3 Mon Sep 17 00:00:00 2001 From: evertonse Date: Fri, 19 Jul 2024 01:35:35 -0300 Subject: [PATCH] fix: check for utils.disabled when changing signcolumn when leaving (WinLeave). --- lua/focus/modules/autocmd.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/focus/modules/autocmd.lua b/lua/focus/modules/autocmd.lua index e0a474c..4f4d956 100644 --- a/lua/focus/modules/autocmd.lua +++ b/lua/focus/modules/autocmd.lua @@ -60,6 +60,9 @@ function M.setup(config) vim.api.nvim_create_autocmd({ 'BufLeave', 'WinLeave' }, { group = augroup, callback = function(_) + if utils.is_disabled() then + return + end vim.wo.signcolumn = 'no' end, desc = 'Disable signcolumn',