summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamad Alamin Yassin <ameen.yaseen.98@gmail.com>2024-01-08 20:17:01 +0300
committerGitHub <noreply@github.com>2024-01-08 12:17:01 -0500
commitc11afa2f90a9e5b995ef51c8f4b37dfcdc1a7390 (patch)
tree3c0568bcbc85b4c545d28a7b6f47d8d45418b7f4
parentc4055a2212c6a1515d07edae5a9de435543102d2 (diff)
Add Missing Fields to Treesitter Config to Resolve Warnings (#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.
-rw-r--r--init.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 7e68de6..dd9ef7b 100644
--- a/init.lua
+++ b/init.lua
@@ -427,7 +427,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 = {