diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-09-25 00:45:15 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2022-09-25 13:46:15 +0200 |
commit | 3169fc54a129f6dd1c0baf2d404e50381cf48e8f (patch) | |
tree | 3d5d03ca2b37983b4f022e84dca1aed18ba84510 /runtime/doc | |
parent | 2a3cb0893b03aeff4d8c0b2116cbddda53bba5a2 (diff) | |
download | rneovim-3169fc54a129f6dd1c0baf2d404e50381cf48e8f.tar.gz rneovim-3169fc54a129f6dd1c0baf2d404e50381cf48e8f.tar.bz2 rneovim-3169fc54a129f6dd1c0baf2d404e50381cf48e8f.zip |
refactor(treesitter): rename x_position => x_pos
"pos" has a long precedent as "position" in vim, and there is no reason
to use a verbose name here.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/develop.txt | 6 | ||||
-rw-r--r-- | runtime/doc/treesitter.txt | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt index b31ac47bda..4f17e7d34a 100644 --- a/runtime/doc/develop.txt +++ b/runtime/doc/develop.txt @@ -251,6 +251,12 @@ Use existing common {action} names if possible: list Get all things set Set a thing (or group of things) +Use existing common {thing} names if possible: + buf Buffer + pos Position + tab Tabpage + win Window + Use consistent names for {thing} in all API functions. E.g. a buffer is called "buf" everywhere, not "buffer" in some places and "buf" in others. diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index eda1a5e496..3102c6da9a 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -434,8 +434,7 @@ get_captures_at_cursor({winnr}) *get_captures_at_cursor()* Return: ~ string[] List of capture names - *get_captures_at_position()* -get_captures_at_position({bufnr}, {row}, {col}) +get_captures_at_pos({bufnr}, {row}, {col}) *get_captures_at_pos()* Returns a list of highlight captures at the given position Each capture is represented by a table containing the capture name as a @@ -460,8 +459,7 @@ get_node_at_cursor({winnr}) *get_node_at_cursor()* Return: ~ (string) Name of node under the cursor - *get_node_at_position()* -get_node_at_position({bufnr}, {row}, {col}, {opts}) +get_node_at_pos({bufnr}, {row}, {col}, {opts}) *get_node_at_pos()* Returns the smallest named node at the given position Parameters: ~ |