mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
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>
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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)
|
||||
|
2
runtime/lua/vim/_meta/api.lua
generated
2
runtime/lua/vim/_meta/api.lua
generated
@ -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.
|
||||
---
|
||||
|
@ -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.
|
||||
///
|
||||
|
@ -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({
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user