Skip to content

Commit c00d066

Browse files
authored
Add Missing Fields to Treesitter Config to Resolve Warnings (nvim-lua#582)
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.
1 parent 0f8b7ee commit c00d066

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

init.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,14 @@ vim.defer_fn(function()
427427

428428
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
429429
auto_install = false,
430-
430+
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
431+
auto_install = false,
432+
-- Install languages synchronously (only applied to `ensure_installed`)
433+
sync_install = false,
434+
-- List of parsers to ignore installing
435+
ignore_install = {},
436+
-- You can specify additional Treesitter modules here: -- For example: -- playground = {--enable = true,-- },
437+
modules = {},
431438
highlight = { enable = true },
432439
indent = { enable = true },
433440
incremental_selection = {

0 commit comments

Comments
 (0)