aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorYochem van Rosmalen <yochem+git@icloud.com>2023-03-17 12:41:57 +0100
committerGitHub <noreply@github.com>2023-03-17 04:41:57 -0700
commit2720d2c793b22e6c0c8719e5592922619fffdf7a (patch)
tree5a4b44b1c490e48485b88703bce3c56953addf3e /runtime/doc
parent6162269fa3107b23fd18c6c6d0e3e8fb73cfb45e (diff)
downloadrneovim-2720d2c793b22e6c0c8719e5592922619fffdf7a.tar.gz
rneovim-2720d2c793b22e6c0c8719e5592922619fffdf7a.tar.bz2
rneovim-2720d2c793b22e6c0c8719e5592922619fffdf7a.zip
fix(treesitter): InspectTree does not respect 'splitright' #22692
Problem: vim.treesitter.inspect_tree() and :InspectTree does not respect 'splitright'. Solution: - Change the default `command` from `topleft 60vnew` to `60vnew`. - Change :InspectTree to respect command mods (`:vertical`, count, etc.). Closes #22656
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/treesitter.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index ddca307e74..46f414d905 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -623,8 +623,8 @@ inspect_tree({opts}) *vim.treesitter.inspect_tree()*
• winid (integer|nil): Window id to display the tree buffer
in. If omitted, a new window is created with {command}.
• command (string|nil): Vimscript command to create the
- window. Default value is "topleft 60vnew". Only used when
- {winid} is nil.
+ window. Default value is "60vnew". Only used when {winid} is
+ nil.
• title (string|fun(bufnr:integer):string|nil): Title of the
window. If a function, it accepts the buffer number of the
source buffer as its only argument and should return a