From 54861a5b7837475dbf16a747740b73253a4a3a2d Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Mon, 18 May 2026 21:34:27 +0200 Subject: fix(nvim): stop leaking options from gitcommit diff and qf buffers --- .config/nvim/after/ftplugin/gitcommit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/nvim/after/ftplugin/gitcommit.lua') diff --git a/.config/nvim/after/ftplugin/gitcommit.lua b/.config/nvim/after/ftplugin/gitcommit.lua index c30f6c5..fea0559 100644 --- a/.config/nvim/after/ftplugin/gitcommit.lua +++ b/.config/nvim/after/ftplugin/gitcommit.lua @@ -22,7 +22,7 @@ vim.api.nvim_create_autocmd("BufWinEnter", { -- If `'spell'` is set before `:DiffGitCached` it propagates to the cached diff window (that we don't want) vim.api.nvim_set_option_value("spell", true, { win = gitcommit_window }) -- The current window is the diff window - vim.o.filetype = "diff" - vim.o.foldenable = false + vim.bo.filetype = "diff" + vim.opt_local.foldenable = false end, }) -- cgit v1.3.1