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 | 8824082782fe060ed043a97be34714fd6f0a094c (patch) | |
| tree | f8e6a66662f903dd471014f4285e0831a532fab1 /after/ftplugin/gitcommit.lua | |
| parent | 81883ff9459466954c03e348a508e0a96c984dce (diff) | |
| download | nvim-config-8824082782fe060ed043a97be34714fd6f0a094c.tar.gz nvim-config-8824082782fe060ed043a97be34714fd6f0a094c.zip | |
fix(nvim): stop leaking options from gitcommit diff and qf buffers
Diffstat (limited to 'after/ftplugin/gitcommit.lua')
| -rw-r--r-- | after/ftplugin/gitcommit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/after/ftplugin/gitcommit.lua b/after/ftplugin/gitcommit.lua index c30f6c5..fea0559 100644 --- a/after/ftplugin/gitcommit.lua +++ b/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, }) |
