treesitter: disable it for text edition

- LaTeX: vimtex has a better syntax analysis
- markdown: vim-pandoc-syntax
This commit is contained in:
Fabrice Mouhartem 2023-12-25 11:41:31 +01:00
parent f6b485d0a6
commit a88aec9556

View File

@ -4,9 +4,13 @@ vim.defer_fn(function()
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'javascript', 'typescript', 'vimdoc', 'vim', 'bash' },
ignore_install = {'latex', 'markdown'},
disable = {'latex', 'markdown'},
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
highlight = { enable = true },
indent = { enable = true },