Add Missing Fields to Treesitter Config to Resolve Warnings

This commit introduces three additional fields - `sync_install`, `ignore_install`, and `modules` - to the Treesitter configuration. This update is aimed at resolving warnings that were previously displayed, potentially causing confusion or frustration for new users of Neovim. By explicitly defining these fields, the configuration aligns better with the latest `nvim-treesitter` requirements.
This commit is contained in:
Mohamad Alamin Yassin 2024-01-08 14:22:02 +03:00 committed by GitHub
parent c4055a2212
commit 9ddc7f6bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,6 +427,17 @@ vim.defer_fn(function()
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
-- Install languages synchronously (only applied to `ensure_installed`)
sync_install = false,
-- List of parsers to ignore installing
ignore_install = {},
modules = {
-- You can specify additional Treesitter modules here
-- For example:
-- playground = {
-- enable = true,
-- },
},
highlight = { enable = true },
indent = { enable = true },