diff options
-rw-r--r-- | .github/workflows/notes.md | 2 | ||||
-rw-r--r-- | MAINTAIN.md | 2 | ||||
-rw-r--r-- | runtime/doc/api.txt | 3 | ||||
-rw-r--r-- | runtime/doc/builtin.txt | 4 | ||||
-rw-r--r-- | runtime/doc/diagnostic.txt | 2 | ||||
-rw-r--r-- | runtime/doc/lua.txt | 6 | ||||
-rw-r--r-- | runtime/doc/luaref.txt | 2 | ||||
-rw-r--r-- | runtime/doc/sign.txt | 4 | ||||
-rw-r--r-- | runtime/doc/syntax.txt | 2 | ||||
-rw-r--r-- | runtime/doc/windows.txt | 4 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 3 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/builtin_types.lua | 4 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 4 | ||||
-rw-r--r-- | runtime/lua/vim/iter.lua | 6 | ||||
-rw-r--r-- | runtime/lua/vim/shared.lua | 3 | ||||
-rw-r--r-- | src/nvim/api/extmark.c | 3 | ||||
-rw-r--r-- | src/nvim/buffer_defs.h | 2 | ||||
-rw-r--r-- | src/nvim/eval.lua | 4 | ||||
-rw-r--r-- | src/nvim/mapping.c | 10 | ||||
-rw-r--r-- | src/nvim/ui_defs.h | 4 | ||||
-rw-r--r-- | test/functional/legacy/messages_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/plugin/lsp/folding_range_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ui/cmdline_highlight_spec.lua | 4 |
23 files changed, 40 insertions, 42 deletions
diff --git a/.github/workflows/notes.md b/.github/workflows/notes.md index 7de7a3470b..ac66e0a816 100644 --- a/.github/workflows/notes.md +++ b/.github/workflows/notes.md @@ -36,7 +36,7 @@ Note: On Windows "Server" you may need to [install vcruntime140.dll](https://lea ### Linux (x86_64) -glibc 2.35 or newer is required. Or you may try the (unsupported) [builds for older glibc](https://github.com/neovim/neovim-releases). +If your system does not have the [required glibc version](https://neovim.io/doc/user/support.html#supported-platforms), try the (unsupported) [builds for older glibc](https://github.com/neovim/neovim-releases). #### AppImage diff --git a/MAINTAIN.md b/MAINTAIN.md index eb58664ed2..13e2c5e772 100644 --- a/MAINTAIN.md +++ b/MAINTAIN.md @@ -241,4 +241,4 @@ See also -------- * https://github.com/neovim/neovim/issues/862 -* https://github.com/git/git/blob/master/Documentation/howto/maintain-git.txt +* https://github.com/git/git/blob/master/Documentation/howto/maintain-git.adoc diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index a714034e50..e096231724 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2924,8 +2924,7 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts}) 'nowrap', otherwise the same as "trunc". • ephemeral : for use with |nvim_set_decoration_provider()| callbacks. The mark will only be used for the current - redraw cycle, and not be permantently stored in the - buffer. + redraw cycle, and not be permanently stored in the buffer. • right_gravity : boolean that indicates the direction the extmark will be shifted in when new text is inserted (true for right, false for left). Defaults to true. diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 9214b33519..2ba464e80c 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -6462,7 +6462,7 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()* Parameters: ~ • {list} (`any[]`) • {str} (`string`) - • {dict} (`string?`) + • {dict} (`table?`) Return: ~ (`any`) @@ -6492,7 +6492,7 @@ matchfuzzypos({list}, {str} [, {dict}]) *matchfuzzypos()* Parameters: ~ • {list} (`any[]`) • {str} (`string`) - • {dict} (`string?`) + • {dict} (`table?`) Return: ~ (`any`) diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index bbc1d1de2c..2b891bde1b 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -122,7 +122,7 @@ with |vim.notify()|: >lua -- Users can configure the handler vim.diagnostic.config({ ["my/notify"] = { - log_level = vim.log.levels.INFO + log_level = vim.log.levels.INFO, -- This handler will only receive "error" diagnostics. severity = vim.diagnostic.severity.ERROR, diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index a99b050195..86cfc56693 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -4288,7 +4288,7 @@ Iter:last() *Iter:last()* (`any`) See also: ~ - • Iter.rpeek + • |Iter:rpeek()| Iter:map({f}) *Iter:map()* Maps the items of an iterator pipeline to the values returned by `f`. @@ -4425,7 +4425,7 @@ Iter:rfind({f}) *Iter:rfind()* (`any`) See also: ~ - • Iter.find + • |Iter:find()| Iter:rpeek() *Iter:rpeek()* Gets the last value of a |list-iterator| without consuming it. @@ -4444,7 +4444,7 @@ Iter:rpeek() *Iter:rpeek()* (`any`) See also: ~ - • Iter.last + • |Iter:last()| Iter:rskip({n}) *Iter:rskip()* Discards `n` values from the end of a |list-iterator| pipeline. diff --git a/runtime/doc/luaref.txt b/runtime/doc/luaref.txt index cd0b648560..ffcd537d7b 100644 --- a/runtime/doc/luaref.txt +++ b/runtime/doc/luaref.txt @@ -3905,7 +3905,7 @@ package.cpath *package.cpath* variable `LUA_CPATH` (plus another default path defined in `luaconf.h`). -package.loaded *package.loaded()* +package.loaded *package.loaded* A table used by `require` to control which modules are already loaded. When you require a module `modname` and `package.loaded[modname]` is not false, `require` simply returns the value stored there. diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt index 9895b606fd..beae7b3ae7 100644 --- a/runtime/doc/sign.txt +++ b/runtime/doc/sign.txt @@ -123,8 +123,8 @@ See |sign_define()| for the equivalent Vim script function. numhl={group} Highlighting group used for the line number on the line where - the sign is placed. Overrides |hl-LineNr|, |hl-LineNrAbove|, - |hl-LineNrBelow|, and |hl-CursorLineNr|. + the sign is placed. Combines with |hl-LineNr|, + |hl-LineNrAbove|, |hl-LineNrBelow|, and |hl-CursorLineNr|. text={text} *E239* Define the text that is displayed when there is no icon or the diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index ae9dc67256..2feee0a511 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -336,7 +336,7 @@ Upon loading a file, Vim finds the relevant syntax file as follows: ============================================================================== 4. Conversion to HTML *convert-to-HTML* *2html.vim* -The old to html converter has ben replaced by a Lua version and the +The old to html converter has been replaced by a Lua version and the documentation has been moved to |:TOhtml|. ============================================================================== diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index 6dd90f7e49..89a9c7dda3 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -1272,7 +1272,7 @@ list of buffers. |unlisted-buffer| :w foobar | sp # < Also see |+cmd|. -:[N]bn[ext][!] [+cmd] [N] *:bn* *:bnext* *[b* *E87* +:[N]bn[ext][!] [+cmd] [N] *:bn* *:bnext* *]b* *E87* Go to [N]th next buffer in buffer list. [N] defaults to one. Wraps around the end of the buffer list. See |:buffer-!| for [!]. @@ -1290,7 +1290,7 @@ list of buffers. |unlisted-buffer| Wraps around the end of the buffer list. Uses 'switchbuf' Also see |+cmd|. -:[N]bN[ext][!] [+cmd] [N] *:bN* *:bNext* *:bp* *:bprevious* *]b* *E88* +:[N]bN[ext][!] [+cmd] [N] *:bN* *:bNext* *:bp* *:bprevious* *[b* *E88* :[N]bp[revious][!] [+cmd] [N] Go to [N]th previous buffer in buffer list. [N] defaults to one. Wraps around the start of the buffer list. diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index b890b64174..63a7bcc37d 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -630,8 +630,7 @@ function vim.api.nvim_buf_line_count(buffer) end --- otherwise the same as "trunc". --- - ephemeral : for use with `nvim_set_decoration_provider()` --- callbacks. The mark will only be used for the current ---- redraw cycle, and not be permantently stored in the ---- buffer. +--- redraw cycle, and not be permanently stored in the buffer. --- - right_gravity : boolean that indicates the direction --- the extmark will be shifted in when new text is inserted --- (true for right, false for left). Defaults to true. diff --git a/runtime/lua/vim/_meta/builtin_types.lua b/runtime/lua/vim/_meta/builtin_types.lua index eae76d80d7..9dd0374486 100644 --- a/runtime/lua/vim/_meta/builtin_types.lua +++ b/runtime/lua/vim/_meta/builtin_types.lua @@ -259,12 +259,12 @@ --- write. The number is the write count. The --- first write has number 1, the last one the --- "save_last" mentioned above. ---- @field save integer +--- @field save? integer --- --- Alternate entry. This is again a List of undo --- blocks. Each item may again have an "alt" --- item. ---- @field alt vim.fn.undotree.entry[] +--- @field alt? vim.fn.undotree.entry[] --- @class vim.fn.undotree.ret --- diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 6ffd0e9619..2b4f1a32b0 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -5868,7 +5868,7 @@ function vim.fn.matchend(expr, pat, start, count) end --- --- @param list any[] --- @param str string ---- @param dict? string +--- @param dict? table --- @return any function vim.fn.matchfuzzy(list, str, dict) end @@ -5895,7 +5895,7 @@ function vim.fn.matchfuzzy(list, str, dict) end --- --- @param list any[] --- @param str string ---- @param dict? string +--- @param dict? table --- @return any function vim.fn.matchfuzzypos(list, str, dict) end diff --git a/runtime/lua/vim/iter.lua b/runtime/lua/vim/iter.lua index 4bbcaf16db..bdbe2be95a 100644 --- a/runtime/lua/vim/iter.lua +++ b/runtime/lua/vim/iter.lua @@ -652,7 +652,7 @@ end --- --- ``` --- ----@see Iter.find +---@see |Iter:find()| --- ---@param f any ---@return any @@ -757,7 +757,7 @@ end --- -- 4 --- ``` --- ----@see Iter.last +---@see |Iter:last()| --- ---@return any function Iter:rpeek() @@ -942,7 +942,7 @@ end --- --- ``` --- ----@see Iter.rpeek +---@see |Iter:rpeek()| --- ---@return any function Iter:last() diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index f370cbfb4e..3aeda1586d 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -7,7 +7,8 @@ -- so this wouldn't be a separate case to consider) ---@nodoc -_G.vim = _G.vim or {} --[[@as table]] -- TODO(lewis6991): better fix for flaky luals +_G.vim = _G.vim or {} --[[@as table]] +-- TODO(lewis6991): better fix for flaky luals ---@generic T ---@param orig T diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c index fa74d9a667..5420816726 100644 --- a/src/nvim/api/extmark.c +++ b/src/nvim/api/extmark.c @@ -455,8 +455,7 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, Object start, Object e /// otherwise the same as "trunc". /// - ephemeral : for use with |nvim_set_decoration_provider()| /// callbacks. The mark will only be used for the current -/// redraw cycle, and not be permantently stored in the -/// buffer. +/// redraw cycle, and not be permanently stored in the buffer. /// - right_gravity : boolean that indicates the direction /// the extmark will be shifted in when new text is inserted /// (true for right, false for left). Defaults to true. diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 87d548bfab..843eb5aa11 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -916,7 +916,7 @@ typedef enum { typedef enum { kWinStyleUnused = 0, - kWinStyleMinimal, /// Minimal UI: no number column, eob markers, etc + kWinStyleMinimal, ///< Minimal UI: no number column, eob markers, etc } WinStyle; typedef enum { diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index eb3956d155..d29c96a763 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -7200,7 +7200,7 @@ M.funcs = { <results in `['two one']`. ]=], name = 'matchfuzzy', - params = { { 'list', 'any[]' }, { 'str', 'string' }, { 'dict', 'string' } }, + params = { { 'list', 'any[]' }, { 'str', 'string' }, { 'dict', 'table' } }, signature = 'matchfuzzy({list}, {str} [, {dict}])', }, matchfuzzypos = { @@ -7229,7 +7229,7 @@ M.funcs = { <results in `[[{"id": 10, "text": "hello"}], [[2, 3]], [127]]` ]=], name = 'matchfuzzypos', - params = { { 'list', 'any[]' }, { 'str', 'string' }, { 'dict', 'string' } }, + params = { { 'list', 'any[]' }, { 'str', 'string' }, { 'dict', 'table' } }, signature = 'matchfuzzypos({list}, {str} [, {dict}])', }, matchlist = { diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c index ca0349d1f6..2b9a972bc9 100644 --- a/src/nvim/mapping.c +++ b/src/nvim/mapping.c @@ -104,14 +104,14 @@ struct map_arguments { char alt_lhs[MAXMAPLEN + 1]; size_t alt_lhs_len; - char *rhs; /// The {rhs} of the mapping. + char *rhs; ///< The {rhs} of the mapping. size_t rhs_len; - LuaRef rhs_lua; /// lua function as {rhs} - bool rhs_is_noop; /// True when the {rhs} should be <Nop>. + LuaRef rhs_lua; ///< lua function as {rhs} + bool rhs_is_noop; ///< True when the {rhs} should be <Nop>. - char *orig_rhs; /// The original text of the {rhs}. + char *orig_rhs; ///< The original text of the {rhs}. size_t orig_rhs_len; - char *desc; /// map description + char *desc; ///< map description }; typedef struct map_arguments MapArguments; #define MAP_ARGUMENTS_INIT { false, false, false, false, false, false, false, false, \ diff --git a/src/nvim/ui_defs.h b/src/nvim/ui_defs.h index bbc1655252..b140eee2c5 100644 --- a/src/nvim/ui_defs.h +++ b/src/nvim/ui_defs.h @@ -37,8 +37,8 @@ typedef struct { bool ui_ext[kUIExtCount]; ///< Externalized UI capabilities. int width; int height; - int pum_nlines; /// actual nr. lines shown in PUM - bool pum_pos; /// UI reports back pum position? + int pum_nlines; ///< actual nr. lines shown in PUM + bool pum_pos; ///< UI reports back pum position? double pum_row; double pum_col; double pum_height; diff --git a/test/functional/legacy/messages_spec.lua b/test/functional/legacy/messages_spec.lua index e73a0780aa..8eb2436cbe 100644 --- a/test/functional/legacy/messages_spec.lua +++ b/test/functional/legacy/messages_spec.lua @@ -88,7 +88,7 @@ describe('messages', function() end) -- oldtest: Test_mode_cleared_after_silent_message() - it('mode is cleared properly after slient message', function() + it('mode is cleared properly after silent message', function() screen = Screen.new(60, 10) exec([[ edit XsilentMessageMode.txt diff --git a/test/functional/plugin/lsp/folding_range_spec.lua b/test/functional/plugin/lsp/folding_range_spec.lua index 7e68a598d2..601f00ef8a 100644 --- a/test/functional/plugin/lsp/folding_range_spec.lua +++ b/test/functional/plugin/lsp/folding_range_spec.lua @@ -612,7 +612,7 @@ static int foldLevel(linenr_T lnum) }) end) - it('is defered when the buffer is not up-to-date', function() + it('is deferred when the buffer is not up-to-date', function() exec_lua(function() vim.lsp.foldclose('comment') vim.lsp.util.buf_versions[bufnr] = 0 diff --git a/test/functional/ui/cmdline_highlight_spec.lua b/test/functional/ui/cmdline_highlight_spec.lua index 0ee994ba0a..6e2f1f244f 100644 --- a/test/functional/ui/cmdline_highlight_spec.lua +++ b/test/functional/ui/cmdline_highlight_spec.lua @@ -477,7 +477,7 @@ describe('Command-line coloring', function() :++^ | ]]) end) - it('does not error out when called from a errorred out cycle', function() + it('does not error out when called from a errored out cycle', function() set_color_cb('ReturningGlobal', { { 0, 1, 'Normal' } }) feed(dedent([[ :set regexpengine=2 @@ -628,7 +628,7 @@ describe('Ex commands coloring', function() local msg = 'E5405: Chunk 0 start 10 splits multibyte character' eq('\n' .. msg, fn.execute('messages')) end) - it('does not error out when called from a errorred out cycle', function() + it('does not error out when called from a errored out cycle', function() -- Apparently when there is a cycle in which one of the commands errors out -- this error may be caught by color_cmdline before it is presented to the -- user. |