Add diff to treesitter's ensure_installed languages

This enables highlighted diffs when running `git commit --verbose`.
This commit is contained in:
Richard Macklin 2024-05-05 17:05:38 -07:00
parent 6f6f38a6b5
commit bfc99c8714
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate', build = ':TSUpdate',
opts = { opts = {
ensure_installed = { 'bash', 'c', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' }, ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
-- Autoinstall languages that are not installed -- Autoinstall languages that are not installed
auto_install = true, auto_install = true,
highlight = { highlight = {