| Commit message (Collapse) | Author | Age |
|\
| |
| | |
doc: remove nvim_buf_get_extmark_by_id limit opt
|
| |
| |
| |
| | |
Passing any key but `details` in the opts results in an error.
|
| | |
|
| |
| |
| |
| | |
position of extmark
|
|/ |
|
|
|
|
|
|
| |
add byte count tests
update documentation
|
|
|
|
|
|
|
|
| |
removing pending virtcol tests
Allow passing in empty array as a shorthand for array with empty string; add more documentation
add check for start_row as well
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix double free because intermediary lines weren't xmemdup'd.
NL-for-NUL dance.
Normalize row indices and perform more validation.
Adjust the cursor position if it's on the right side of the replacement.
Tests and documentation.
|
| |
|
|\
| |
| | |
api: add textlock check
|
| | |
|
|/
|
|
|
| |
Also adds a test that we actually subscribe to buffer events when in
CMDPREVIEW.
|
|
|
|
|
| |
Most these are just calls to non-deprecated variants, and take up
unnecessary space and search hits in the other files.
|
|
|
|
|
| |
Base priority is 0x1000, in order to stay kinda backward compatible.
Also set tree-sitter default highlight to 100 (middle-ish value)
|
|
|
|
|
| |
Decorations will only grow more complex. move the to a separate
file, so that extmark.c remains about extmarks.
|
|
|
|
|
|
|
|
|
|
| |
co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function)
orange is sus??
NOVEMBER DAWN
erase the lie that is redraw_later()
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
54ce101 changed the way undo entries are created when adding decorations.
This creates all sorts of problems.This change fixes the problem by
reverting to the previous behavior.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This implements byte-resolution updates of buffer changes.
Note: there is no promise that the buffer state is valid inside
the callback!
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
return decorations back
lol no nvim_buf_get_virtual_text
share decorations that are hl only to avoid alloc avalanche
|
| |
|
|
|
|
| |
one very important thought
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix some small doc issues
* doc: fixup
* doc: fixup
* Fix lint and rebase
* Remove bad advice
* Ugh, stupid mpack files...
* Don't let people include these for now until they specifically want to
* Prevent duplicate tag
|
| |
|
| |
|
|
|
|
| |
We intentionally do not translate API errors.
ref: https://github.com/neovim/neovim/issues/6150
|
|
|
|
|
|
|
| |
Remove a dead assignment of the `ns_id` variable in the
`src/nvim/api/buffer.c` file.
Refer: https://neovim.io/doc/reports/clang/report-f279da.html#EndPath
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add new "splice" interface for tracking buffer changes at the byte
level. This will later be reused for byte-resolution buffer updates.
(Implementation has been started, but using undocumented "_on_bytes"
option now as interface hasn't been finalized).
Use this interface to improve many edge cases of extmark adjustment.
Changed tests indicate previously incorrect behavior. Adding tests for
more edge cases will be follow-up work (overlaps on_bytes tests)
Don't consider creation/deletion of marks an undoable event by itself.
This behavior was never documented, and imposes complexity for little gain.
Add nvim__buf_add_decoration temporary API for direct access to the new
implementation. This should be refactored into a proper API for
decorations, probably involving a huge dict.
fixes #11598
|
|
|
|
| |
[skip.lint]
|
|
|
|
|
| |
extmark: need to use buf instead of curbuf
|
|
|
|
| |
- nvim_buf_get_extmarks: rename "amount" => "limit"
- rename `set_extmark_index_from_obj`
|
|
|
|
| |
- Rework :help lua-commands
- Rename if_lua.txt => lua.txt
|
| |
|
| |
|
|\
| |
| | |
extmark API feature
|
| | |
|