From d0ddb50c328f50c7dc643b7ae53a3faf22a38cda Mon Sep 17 00:00:00 2001 From: Zach Zolton Date: Fri, 15 Mar 2024 10:17:14 -0400 Subject: [PATCH] Fix git commit highlighting As per: https://neovim.discourse.group/t/git-diff-highlighting-are-not-working-anymore-in-gitcommit-filetype/3547/4 --- init.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1dd5e3a1..8c746d68 100644 --- a/init.lua +++ b/init.lua @@ -745,7 +745,17 @@ require('lazy').setup({ ---@diagnostic disable-next-line: missing-fields require('nvim-treesitter.configs').setup { - ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' }, + ensure_installed = { + 'bash', + 'c', + 'diff', + 'git_rebase', + 'html', + 'lua', + 'markdown', + 'vim', + 'vimdoc', + }, -- Autoinstall languages that are not installed auto_install = true, highlight = { enable = true },