aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter.lua
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2023-09-15 03:10:55 -0700
committerGitHub <noreply@github.com>2023-09-15 03:10:55 -0700
commit28233bcb49067aaa70fa6e5fec14e2cc4bcaa315 (patch)
tree5e2185b09159cba8b962d3bc0453891ddc05c117 /runtime/lua/vim/treesitter.lua
parent2d9e7a33f41c842521c74d45927cfcb1874c711b (diff)
downloadrneovim-28233bcb49067aaa70fa6e5fec14e2cc4bcaa315.tar.gz
rneovim-28233bcb49067aaa70fa6e5fec14e2cc4bcaa315.tar.bz2
rneovim-28233bcb49067aaa70fa6e5fec14e2cc4bcaa315.zip
refactor(treesitter): rename "preview" => "edit" #25161
"Edit" more closely describes the generic application than "Preview", though the buffer contents don't (yet) map to an actual file on disk. https://github.com/neovim/neovim/pull/24703#discussion_r1321719133
Diffstat (limited to 'runtime/lua/vim/treesitter.lua')
-rw-r--r--runtime/lua/vim/treesitter.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/runtime/lua/vim/treesitter.lua b/runtime/lua/vim/treesitter.lua
index 169aa6c269..cc8be72670 100644
--- a/runtime/lua/vim/treesitter.lua
+++ b/runtime/lua/vim/treesitter.lua
@@ -473,7 +473,7 @@ end
--- Open a window that displays a textual representation of the nodes in the language tree.
---
--- While in the window, press "a" to toggle display of anonymous nodes, "I" to toggle the
---- display of the source language of each node, "o" to toggle the query previewer, and press
+--- display of the source language of each node, "o" to toggle the query editor, and press
--- <Enter> to jump to the node under the cursor in the source buffer.
---
--- Can also be shown with `:InspectTree`. *:InspectTree*
@@ -495,13 +495,6 @@ function M.inspect_tree(opts)
require('vim.treesitter.dev').inspect_tree(opts)
end
---- Open a window for live editing of a treesitter query.
----
---- Can also be shown with `:PreviewQuery`. *:PreviewQuery*
-function M.preview_query()
- require('vim.treesitter.dev').preview_query()
-end
-
--- Returns the fold level for {lnum} in the current buffer. Can be set directly to 'foldexpr':
---
--- ```lua