diff options
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, }) |
