diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-18 21:34:27 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-18 21:46:04 +0200 |
| commit | 54861a5b7837475dbf16a747740b73253a4a3a2d (patch) | |
| tree | 36fda9ac999c3af781580cfa6281d8d1d19b986c /.config/nvim/after/ftplugin/gitcommit.lua | |
| parent | 47b57f8fce3a342259644804ab7efc6ff09664cf (diff) | |
| download | dotfiles-54861a5b7837475dbf16a747740b73253a4a3a2d.tar.gz dotfiles-54861a5b7837475dbf16a747740b73253a4a3a2d.zip | |
fix(nvim): stop leaking options from gitcommit diff and qf buffers
Diffstat (limited to '.config/nvim/after/ftplugin/gitcommit.lua')
| -rw-r--r-- | .config/nvim/after/ftplugin/gitcommit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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, }) |
