From 3e050070453fdc3b46b349920a14c1b5d7a9fd47 Mon Sep 17 00:00:00 2001 From: histalek Date: Thu, 15 Dec 2022 13:32:37 +0100 Subject: [PATCH] nvim: Disable git-related treesitter highligthing --- .config/nvim/lua/plugins/treesitter.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index 944f413..c746f96 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -23,7 +23,13 @@ treesitter.setup({ }, sync_install = false, auto_install = true, -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally - highlight = { enable = true }, + highlight = { + enable = true, + disable = { + "gitcommit", + "git_rebase", + }, -- non-treesitter highligthing is way better for verbose gitcommit and git_rebase + }, indent = { enable = true }, autotag = { enabled = true }, })