Skip to content

Commit

Permalink
Add Missing Fields to Treesitter Config to Resolve Warnings (nvim-lua…
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
strikoder authored and Peter-McKinney committed Apr 9, 2024
1 parent 7f75cf1 commit 4b4ee08
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,14 @@ vim.defer_fn(function()

-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,

-- 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 = {},
-- You can specify additional Treesitter modules here: -- For example: -- playground = {--enable = true,-- },
modules = {},
highlight = { enable = true },
indent = { enable = true },
incremental_selection = {
Expand Down

0 comments on commit 4b4ee08

Please sign in to comment.