@@ -825,6 +825,7 @@ nvim_eval_statusline({str}, {*opts}) *nvim_eval_statusline()*
825
825
• maxwidth: (number) Maximum width of statusline.
826
826
• fillchar: (string) Character to fill blank
827
827
spaces in the statusline (see 'fillchars' ).
828
+ Treated as single-width even if it isn't.
828
829
• highlights: (boolean) Return highlight
829
830
information.
830
831
• use_tabline: (boolean) Evaluate tabline instead
@@ -1546,19 +1547,25 @@ nvim_set_current_win({window}) *nvim_set_current_win()*
1546
1547
nvim_set_hl({ns_id}, {name} , {*val} ) *nvim_set_hl()*
1547
1548
Sets a highlight group.
1548
1549
1550
+ Note: Unlike the `:highlight ` command which can update a highlight group, this function
1551
+ completely replaces the definition. For example: nvim_set_hl(0, 'Visual , {}) will clear the highlight group 'Visual .
1552
+
1549
1553
Parameters: ~
1550
- {ns_id} Namespace id for this highlight | nvim_create_namespace() | .
1551
- Use 0 to set a highlight group globally | :highlight | .
1554
+ {ns_id} Namespace id for this highlight
1555
+ | nvim_create_namespace() | . Use 0 to set a
1556
+ highlight group globally | :highlight | .
1552
1557
{name} Highlight group name, e.g. "ErrorMsg"
1553
1558
{val} Highlight definition map, like | synIDattr() | . In
1554
1559
addition, the following keys are recognized:
1555
- • default: Don't override existing definition | :hi-default |
1556
- • ctermfg: Sets foreground of cterm color | highlight-ctermfg |
1557
- • ctermbg: Sets background of cterm color | highlight-ctermbg |
1560
+ • default: Don't override existing definition
1561
+ | :hi-default |
1562
+ • ctermfg: Sets foreground of cterm color
1563
+ | highlight-ctermfg |
1564
+ • ctermbg: Sets background of cterm color
1565
+ | highlight-ctermbg |
1558
1566
• cterm: cterm attribute map, like
1559
- | highlight-args | .
1560
- Note: Attributes default to those set for `gui `
1561
- if not set.
1567
+ | highlight-args | . Note: Attributes default to
1568
+ those set for `gui ` if not set.
1562
1569
1563
1570
nvim_set_keymap({mode} , {lhs} , {rhs} , {*opts} ) *nvim_set_keymap()*
1564
1571
Sets a global | mapping | for the given mode.
@@ -1932,7 +1939,7 @@ nvim_buf_attach({buffer}, {send_buffer}, {opts}) *nvim_buf_attach()*
1932
1939
• on_reload: Lua callback invoked on
1933
1940
reload. The entire buffer content should
1934
1941
be considered changed. Args:
1935
- • the string "detach "
1942
+ • the string "reload "
1936
1943
• buffer handle
1937
1944
1938
1945
• utf_sizes: include UTF-32 and UTF-16 size
@@ -2577,6 +2584,28 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {*opts})
2577
2584
not be placed if the line or column value is
2578
2585
past the end of the buffer or end of the line
2579
2586
respectively. Defaults to true.
2587
+ • sign_text: string of length 1-2 used to
2588
+ display in the sign column. Note: ranges are
2589
+ unsupported and decorations are only applied
2590
+ to start_row
2591
+ • sign_hl_group: name of the highlight group
2592
+ used to highlight the sign column text. Note:
2593
+ ranges are unsupported and decorations are
2594
+ only applied to start_row
2595
+ • number_hl_group: name of the highlight group
2596
+ used to highlight the number column. Note:
2597
+ ranges are unsupported and decorations are
2598
+ only applied to start_row
2599
+ • line_hl_group: name of the highlight group
2600
+ used to highlight the whole line. Note: ranges
2601
+ are unsupported and decorations are only
2602
+ applied to start_row
2603
+ • cursorline_hl_group: name of the highlight
2604
+ group used to highlight the line when the
2605
+ cursor is on the same line as the mark and
2606
+ 'cursorline' is enabled. Note: ranges are
2607
+ unsupported and decorations are only applied
2608
+ to start_row
2580
2609
2581
2610
Return: ~
2582
2611
Id of the created/updated extmark
@@ -2811,7 +2840,7 @@ nvim_win_set_buf({window}, {buffer}) *nvim_win_set_buf()*
2811
2840
2812
2841
nvim_win_set_cursor({window} , {pos} ) *nvim_win_set_cursor()*
2813
2842
Sets the (1,0)-indexed cursor position in the window.
2814
- | api-indexing |
2843
+ | api-indexing | Unlike | win_execute() | this scrolls the window.
2815
2844
2816
2845
Parameters: ~
2817
2846
{window} Window handle, or 0 for current window
0 commit comments