From 5d4eaa976a4949f4aefce8bdcf2d9e73b0aa538a Mon Sep 17 00:00:00 2001 From: Juhan Ahmed Date: Fri, 25 Oct 2024 12:53:32 +0600 Subject: [PATCH] docs: add `local` prefix for locals group to match upstream --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b7beddd..e29df4da 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ require'nvim-treesitter.configs'.setup { -- nvim_buf_set_keymap) which plugins like which-key display ["ic"] = { query = "@class.inner", desc = "Select inner part of a class region" }, -- You can also use captures from other query groups like `locals.scm` - ["as"] = { query = "@scope", query_group = "locals", desc = "Select language scope" }, + ["as"] = { query = "@local.scope", query_group = "locals", desc = "Select language scope" }, }, -- You can choose the select mode (default is charwise 'v') -- @@ -129,7 +129,7 @@ require'nvim-treesitter.configs'.setup { -- -- You can pass a query group to use query from `queries//.scm file in your runtime path. -- Below example nvim-treesitter's `locals.scm` and `folds.scm`. They also provide highlights.scm and indent.scm. - ["]s"] = { query = "@scope", query_group = "locals", desc = "Next scope" }, + ["]s"] = { query = "@local.scope", query_group = "locals", desc = "Next scope" }, ["]z"] = { query = "@fold", query_group = "folds", desc = "Next fold" }, }, goto_next_end = {