summaryrefslogtreecommitdiffstats
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
commitc3c0278f0638c2bd96e8098e8bab6bf38e72111f (patch)
treee31555da06ee34e7347b124f2226f2e9a23b18b5
parentda3895c7996720552dbef774fb6c607322b3bd58 (diff)
downloaddots-c3c0278f0638c2bd96e8098e8bab6bf38e72111f.tar.gz
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--nvim/init.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 7e68de6..dd9ef7b 100644
--- a/nvim/init.lua
+++ b/nvim/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 = {