aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2024-03-28 02:32:32 +0100
committerGitHub <noreply@github.com>2024-03-28 09:32:32 +0800
commita89ce89742db600665b69e58d5e1bc3dbee9d57b (patch)
treefdb467f608d96c293aa51b4c1e7291e8bc0de825 /runtime/doc
parent4ee9e58056a9d17ce921d8cc6dfd6d3305a40f69 (diff)
downloadrneovim-a89ce89742db600665b69e58d5e1bc3dbee9d57b.tar.gz
rneovim-a89ce89742db600665b69e58d5e1bc3dbee9d57b.tar.bz2
rneovim-a89ce89742db600665b69e58d5e1bc3dbee9d57b.zip
docs: fix typos (#27868)
Co-authored-by: ite-usagi <77563904+ite-usagi@users.noreply.github.com> Co-authored-by: v-sim <56476039+v-sim@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Quico Augustijn <quico.public@gmail.com> Co-authored-by: nhld <nahnera@gmail.com> Co-authored-by: francisco souza <108725+fsouza@users.noreply.github.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/api.txt2
-rw-r--r--runtime/doc/lua.txt2
-rw-r--r--runtime/doc/treesitter.txt4
3 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 0512814887..bf56a09ac7 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -2447,7 +2447,7 @@ nvim_buf_set_mark({buffer}, {name}, {line}, {col}, {opts})
• |nvim_buf_get_mark()|
nvim_buf_set_name({buffer}, {name}) *nvim_buf_set_name()*
- Sets the full file name for a buffer
+ Sets the full file name for a buffer, like |:file_f|
Parameters: ~
• {buffer} Buffer handle, or 0 for current buffer
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 85f3d3288e..b9bc73e0b8 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -968,7 +968,7 @@ vim.str_byteindex({str}, {index}, {use_utf16}) *vim.str_byteindex()*
Convert UTF-32 or UTF-16 {index} to byte index. If {use_utf16} is not
supplied, it defaults to false (use UTF-32). Returns the byte index.
- Invalid UTF-8 and NUL is treated like by |vim.str_byteindex()|. An {index}
+ Invalid UTF-8 and NUL is treated like in |vim.str_utfindex()|. An {index}
in the middle of a UTF-16 sequence is rounded upwards to the end of that
sequence.
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index 2dbff332af..0d5511ac40 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -149,7 +149,7 @@ TSNode:sexpr() *TSNode:sexpr()*
Get an S-expression representing the node as a string.
TSNode:id() *TSNode:id()*
- Get an unique identifier for the node inside its own tree.
+ Get a unique identifier for the node inside its own tree.
No guarantees are made about this identifier's internal representation,
except for being a primitive Lua type with value equality (so not a
@@ -524,7 +524,7 @@ the exact definition):
@keyword.operator operators that are English words (e.g. `and`, `or`)
@keyword.import keywords for including modules (e.g. `import`, `from` in Python)
@keyword.type keywords defining composite types (e.g. `struct`, `enum`)
-@keyword.modifier keywords definining type modifiers (e.g. `const`, `static`, `public`)
+@keyword.modifier keywords defining type modifiers (e.g. `const`, `static`, `public`)
@keyword.repeat keywords related to loops (e.g. `for`, `while`)
@keyword.return keywords like `return` and `yield`
@keyword.debug keywords related to debugging