neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit bd0a65bc151a7a496e913125f54814f591845e91
parent 5e7801329f5b1d7dc6523beb9b60a2bda19e7da1
Author: dundargoc <33953936+dundargoc@users.noreply.github.com>
Date:   Mon, 17 Feb 2025 03:33:20 +0100

docs: misc (#32258)

Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: Julian Visser <12615757+justmejulian@users.noreply.github.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat:
Mruntime/doc/api.txt | 4++--
Mruntime/doc/diagnostic.txt | 2+-
Mruntime/doc/lsp.txt | 2+-
Mruntime/doc/luvref.txt | 2+-
Mruntime/doc/vim_diff.txt | 1+
Mruntime/lua/vim/_meta/api.lua | 2+-
Msrc/nvim/api/extmark.c | 2+-
Mtest/functional/editor/defaults_spec.lua | 2+-
Mtest/old/testdir/setup.vim | 2+-
9 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt @@ -2649,8 +2649,8 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts}) lines are placed below the buffer line containing the mark. • virt_lines_above: place virtual lines above instead. - • virt_lines_leftcol: Place extmarks in the leftmost column - of the window, bypassing sign and number columns. + • virt_lines_leftcol: Place virtual lines in the leftmost + column of the window, bypassing sign and number columns. • 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 diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt @@ -373,7 +373,7 @@ EVENTS *diagnostic-events* *DiagnosticChanged* DiagnosticChanged After diagnostics have changed. When used from Lua, the new diagnostics are passed to the autocmd - callback in the "data" table. + callback in the "data" table. Triggered per buffer. Example: >lua diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt @@ -119,7 +119,7 @@ Results in the configuration: >lua root_markers = { '.clangd', 'compile_commands.json' }, -- From the clangd configuration in init.lua - -- Overrides the * configuration in init.lua + -- Overrides the clangd configuration in <rtp>/lsp/clangd.lua filetypes = { 'c' }, -- From the * configuration in init.lua diff --git a/runtime/doc/luvref.txt b/runtime/doc/luvref.txt @@ -226,7 +226,7 @@ ERROR HANDLING *luv-error-handling* In libuv, errors are represented by negative numbered constants. While these constants are made available in the `uv.errno` table, they are not returned by -luv funtions and the libuv functions used to handle them are not exposed. +luv functions and the libuv functions used to handle them are not exposed. Instead, if an internal error is encountered, the failing luv function will return to the caller an assertable `nil, err, name` tuple: diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt @@ -46,6 +46,7 @@ Defaults *defaults* *nvim-defaults* - 'compatible' is always disabled - 'complete' excludes "i" - 'define' defaults to "". The C ftplugin sets it to "^\\s*#\\s*define" +- 'diffopt' defaults to "internal,filler,closeoff,linematch:40" - 'directory' defaults to ~/.local/state/nvim/swap// (|xdg|), auto-created - 'display' defaults to "lastline" - 'encoding' is UTF-8 (cf. 'fileencoding' for file-content encoding) diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua @@ -638,7 +638,7 @@ function vim.api.nvim_buf_line_count(buffer) end --- placed below the buffer line containing the mark. --- --- - virt_lines_above: place virtual lines above instead. ---- - virt_lines_leftcol: Place extmarks in the leftmost +--- - virt_lines_leftcol: Place virtual lines in the leftmost --- column of the window, bypassing --- sign and number columns. --- diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c @@ -445,7 +445,7 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, Object start, Object e /// placed below the buffer line containing the mark. /// /// - virt_lines_above: place virtual lines above instead. -/// - virt_lines_leftcol: Place extmarks in the leftmost +/// - virt_lines_leftcol: Place virtual lines in the leftmost /// column of the window, bypassing /// sign and number columns. /// diff --git a/test/functional/editor/defaults_spec.lua b/test/functional/editor/defaults_spec.lua @@ -167,7 +167,7 @@ describe('default', function() end) describe('unimpaired-style mappings', function() - it('show the command ouptut when successful', function() + it('show the command output when successful', function() n.clear({ args_rm = { '--cmd' } }) local screen = Screen.new(40, 8) n.fn.setqflist({ diff --git a/test/old/testdir/setup.vim b/test/old/testdir/setup.vim @@ -3,8 +3,8 @@ if exists('s:did_load') set commentstring=/*\ %s\ */ set complete=.,w,b,u,t,i set define=^\\s*#\\s*define - set directory^=. set diffopt=internal,filler,closeoff + set directory^=. set display= set fillchars=vert:\|,foldsep:\|,fold:- set formatoptions=tcq