From cee981bf09c81ab4b2fe6facf45076ea4bac46a5 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 19 Jun 2023 02:24:44 -0700 Subject: docs #22363 Co-authored by: zeertzjq Co-authored by: Steven Todd McIntyre II <114119064+stmii@users.noreply.github.com> Co-authored by: nobe4 - docs: mention --luadev-mod to run with lua runtime files When changing a lua file in the ./runtime folder, a new contributor might expect changes to be applied to the built Neovim binary. --- src/man/nvim.1 | 2 +- src/nvim/api/window.c | 2 ++ src/nvim/main.c | 22 ++++++---------------- 3 files changed, 9 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/man/nvim.1 b/src/man/nvim.1 index c32bdeadc6..b846ed4ba6 100644 --- a/src/man/nvim.1 +++ b/src/man/nvim.1 @@ -193,7 +193,7 @@ is do not read or write a ShaDa file. .Ic ":help shada" .It Fl -noplugin -Skip loading plugins. +Skip loading plugins (by setting the 'noloadplugins' option). Implied by .Cm -u NONE . .It Fl -clean diff --git a/src/nvim/api/window.c b/src/nvim/api/window.c index c021fec220..97bf0f377a 100644 --- a/src/nvim/api/window.c +++ b/src/nvim/api/window.c @@ -57,6 +57,8 @@ void nvim_win_set_buf(Window window, Buffer buffer, Error *err) /// (different windows showing the same buffer have independent cursor /// positions). |api-indexing| /// +/// @see |getcurpos()| +/// /// @param window Window handle, or 0 for current window /// @param[out] err Error details, if any /// @return (row, col) tuple diff --git a/src/nvim/main.c b/src/nvim/main.c index 6ab7391b05..83e56c3066 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -2185,43 +2185,33 @@ static void usage(void) signal_stop(); // kill us with CTRL-C here, if you like os_msg(_("Usage:\n")); - os_msg(_(" nvim [options] [file ...] Edit file(s)\n")); - os_msg(_(" nvim [options] -t Edit file where tag is defined\n")); - os_msg(_(" nvim [options] -q [errorfile] Edit file with first error\n")); + os_msg(_(" nvim [options] [file ...]\n")); os_msg(_("\nOptions:\n")); - os_msg(_(" -- Only file names after this\n")); - os_msg(_(" + Start at end of file\n")); os_msg(_(" --cmd Execute before any config\n")); os_msg(_(" +, -c Execute after config and first file\n")); os_msg(_(" -l