Disable "diff" treesitter parser for highlight

This commit is contained in:
Tunui Franken 2022-11-02 11:53:51 +01:00
parent 09e0efd8ae
commit 3a72d8da53

View file

@ -2,7 +2,7 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all"
ensure_installed = { "latex", "lua" },
ensure_installed = { "lua" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
@ -18,7 +18,7 @@ require'nvim-treesitter.configs'.setup {
-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
-- the name of the parser)
-- list of language that will be disabled
disable = { "latex", "yaml" },
disable = { "diff", "latex", "yaml" },
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).