aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-01-15 12:36:00 +0200
committerGitHub <noreply@github.com>2025-01-15 02:36:00 -0800
commit09bcb310681e3b87d5b8c5eb547b182554cff7b4 (patch)
treefc239f2d658f5d2620e0b99c37fa90ad371959e2 /runtime/lua/vim/treesitter/query.lua
parent9552fe7ef907c5c8164abb50699e97d03de1285a (diff)
downloadrneovim-09bcb310681e3b87d5b8c5eb547b182554cff7b4.tar.gz
rneovim-09bcb310681e3b87d5b8c5eb547b182554cff7b4.tar.bz2
rneovim-09bcb310681e3b87d5b8c5eb547b182554cff7b4.zip
fix(docs): replace `yxx` mappings with `g==` #31947
Problem: `yx` uses "y" prefix, which shadows a builtin operator. Solution: Use `g=` (in the form of `g==` currently), drawing from precedent of CTRL-= and 'tpope/vim-scriptease'.
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
-rw-r--r--runtime/lua/vim/treesitter/query.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua
index ad648f36cc..e43d0a8ad4 100644
--- a/runtime/lua/vim/treesitter/query.lua
+++ b/runtime/lua/vim/treesitter/query.lua
@@ -301,7 +301,7 @@ api.nvim_create_autocmd('OptionSet', {
--- - `captures`: a list of unique capture names defined in the query (alias: `info.captures`).
--- - `info.patterns`: information about predicates.
---
---- Example (to try it, use `yxx` or select the code then run `:'<,'>lua`):
+--- Example (to try it, use `g==` or select the code then run `:'<,'>lua`):
--- ```lua
--- local query = vim.treesitter.query.parse('vimdoc', [[
--- ; query