aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2024-04-30 01:04:42 +0200
committerGitHub <noreply@github.com>2024-04-30 07:04:42 +0800
commit234b5f67019b435b604308a96c366b1187c2cc3a (patch)
treef22fa4e2fc0318ec5940f31746f04db3361f8a4e /src
parentb7e5769132e865122fe4bf8588be9ca1820db802 (diff)
downloadrneovim-234b5f67019b435b604308a96c366b1187c2cc3a.tar.gz
rneovim-234b5f67019b435b604308a96c366b1187c2cc3a.tar.bz2
rneovim-234b5f67019b435b604308a96c366b1187c2cc3a.zip
docs: various fixes (#28208)
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: Famiu Haque <famiuhaque@proton.me> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Guilherme Soares <guilhermesoares1970@gmail.com> Co-authored-by: Jannik Buhr <jannik.m.buhr@gmail.com> Co-authored-by: thomaswuhoileong <72001875+thomaswuhoileong@users.noreply.github.com> Co-authored-by: tom-anders <13141438+tom-anders@users.noreply.github.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.lua1
-rw-r--r--src/nvim/eval/userfunc.c2
-rw-r--r--src/nvim/options.lua2
-rw-r--r--src/nvim/vvars.lua7
4 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 65389ede99..4101ba50fb 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -7902,6 +7902,7 @@ M.funcs = {
name = 'printf',
params = { { 'fmt', 'any' }, { 'expr1', 'any' } },
signature = 'printf({fmt}, {expr1} ...)',
+ returns = 'string',
},
prompt_getprompt = {
args = 1,
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index 2a3aec1bc7..39bd63462c 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -2365,7 +2365,7 @@ void ex_function(exarg_T *eap)
// Read the body of the function, until ":endfunction" is found.
if (KeyTyped) {
// Check if the function already exists, don't let the user type the
- // whole function before telling him it doesn't work! For a script we
+ // whole function before telling them it doesn't work! For a script we
// need to skip the body to be able to find what follows.
if (!eap->skip && !eap->forceit) {
if (fudi.fd_dict != NULL && fudi.fd_newkey == NULL) {
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index d4aceed013..40a5e3ba78 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -1324,7 +1324,7 @@ return {
defaults = { if_true = '' },
desc = [=[
A template for a comment. The "%s" in the value is replaced with the
- comment text. For example, C uses "/*%s*/". Currently only used to
+ comment text. For example, C uses "/*%s*/". Used for |commenting| and to
add markers for folding, see |fold-marker|.
]=],
full_name = 'commentstring',
diff --git a/src/nvim/vvars.lua b/src/nvim/vvars.lua
index 37cb70c725..224edfaf6e 100644
--- a/src/nvim/vvars.lua
+++ b/src/nvim/vvars.lua
@@ -64,9 +64,10 @@ M.vars = {
},
completed_item = {
desc = [=[
- Dictionary containing the most recent |complete-items| after
- |CompleteDone|. Empty if the completion failed, or after
- leaving and re-entering insert mode.
+ Dictionary containing the |complete-items| for the most
+ recently completed word after |CompleteDone|. Empty if the
+ completion failed, or after leaving and re-entering insert
+ mode.
Note: Plugins can modify the value to emulate the builtin
|CompleteDone| event behavior.
]=],