aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/_meta/builtin.lua6
-rw-r--r--runtime/lua/vim/_meta/options.lua5
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua18
3 files changed, 15 insertions, 14 deletions
diff --git a/runtime/lua/vim/_meta/builtin.lua b/runtime/lua/vim/_meta/builtin.lua
index a5508bdc04..d7b76a803c 100644
--- a/runtime/lua/vim/_meta/builtin.lua
+++ b/runtime/lua/vim/_meta/builtin.lua
@@ -132,7 +132,7 @@ function vim.str_utf_pos(str) end
---
--- Examples:
--- <pre>lua
---- -- The character 'æ' are equal to the bytes '\xc3\xa6' (using UTF-8)
+--- -- The character 'æ' is stored as the bytes '\xc3\xa6' (using UTF-8)
---
--- -- Returns 0 because the index is pointing at the first byte of a character
--- vim.str_utf_start('æ', 1)
@@ -151,12 +151,12 @@ function vim.str_utf_start(str, index) end
---
--- Examples:
--- <pre>lua
---- -- The character 'æ' are equal to the bytes '\xc3\xa6' (using UTF-8)
+--- -- The character 'æ' is stored as the bytes '\xc3\xa6' (using UTF-8)
---
--- -- Returns 0 because the index is pointing at the last byte of a character
--- vim.str_utf_end('æ', 2)
---
---- -- Returns 1 because the index is pointing at the second last byte of a character
+--- -- Returns 1 because the index is pointing at the penultimate byte of a character
--- vim.str_utf_end('æ', 1)
--- </pre>
---
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 8edb87df91..4fb3141df0 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -4323,8 +4323,9 @@ vim.go.mousemoveevent = vim.o.mousemoveevent
vim.go.mousemev = vim.go.mousemoveevent
--- This option controls the number of lines / columns to scroll by when
---- scrolling with a mouse. The option is a comma separated list of parts.
---- Each part consists of a direction and a count as follows:
+--- scrolling with a mouse wheel (`scroll-mouse-wheel`). The option is
+--- a comma-separated list. Each part consists of a direction and a count
+--- as follows:
--- direction:count,direction:count
--- Direction is one of either "hor" or "ver". "hor" controls horizontal
--- scrolling and "ver" controls vertical scrolling. Count sets the amount
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
index 0ac8985274..ebd74046ce 100644
--- a/runtime/lua/vim/_meta/vimfn.lua
+++ b/runtime/lua/vim/_meta/vimfn.lua
@@ -9878,15 +9878,15 @@ function vim.fn.trunc(expr) end
--- The result is a Number representing the type of {expr}.
--- Instead of using the number directly, it is better to use the
--- v:t_ variable that has the value:
---- Number: 0 (|v:t_number|)
---- String: 1 (|v:t_string|)
---- Funcref: 2 (|v:t_func|)
---- List: 3 (|v:t_list|)
---- Dictionary: 4 (|v:t_dict|)
---- Float: 5 (|v:t_float|)
---- Boolean: 6 (|v:true| and |v:false|)
---- Null: 7 (|v:null|)
---- Blob: 10 (|v:t_blob|)
+--- Number: 0 |v:t_number|
+--- String: 1 |v:t_string|
+--- Funcref: 2 |v:t_func|
+--- List: 3 |v:t_list|
+--- Dictionary: 4 |v:t_dict|
+--- Float: 5 |v:t_float|
+--- Boolean: 6 |v:t_bool| (|v:false| and |v:true|)
+--- Null: 7 (|v:null|)
+--- Blob: 10 |v:t_blob|
--- For backward compatibility, this method can be used: >vim
--- if type(myvar) == type(0) | endif
--- if type(myvar) == type("") | endif