Thomas Vigouroux
a85e8a186b
perf(extmarks): allow ephemeral extmarks past EOF
2021-06-16 20:15:47 +02:00
Björn Linse
53791c0546
Merge pull request #14510 from urandom/doc_nvim_buf_set_extmark
...
Minor observational corrections to the nvim_buf_set_extmark documentation
2021-06-10 09:39:35 +02:00
Jan Edmund Lazo
89e29e8774
fixup! refactor nvim_buf_set_lines to use extmark_splice
2021-05-12 19:13:28 -04:00
disrupted
e5c22f6347
Fix nvim_buf_set_lines
2021-05-10 13:31:06 +02:00
Viktor Kojouharov
5ea9cbc280
Update the functio documentation in C
2021-05-10 11:27:48 +02:00
chentau
13a9bd006f
make get_region_bytecount end-exclusive
2021-05-09 16:23:01 -07:00
chentau
a847abc21b
refactor nvim_buf_set_lines to use extmark_splice
2021-05-09 16:22:20 -07:00
Sean Dewar
b274b9887a
fix(gcc): compile warning in nvim_buf_set_extmark
2021-05-05 02:15:51 +01:00
Björn Linse
0865f1238f
decorations: right_align and win_col
2021-05-01 11:48:04 +02:00
Björn Linse
7b488314d0
decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
2021-04-14 13:04:33 +02:00
Thomas Vigouroux
d7a1bbd81a
docs: add priority option in buf_set_extmark
2021-04-07 15:36:46 +02:00
Björn Linse
a0b7bb4153
luaref: free all references in buffer_updates
2021-04-03 16:27:58 +02:00
Björn Linse
425bc438ae
decorations: add additional styling of virt_text overlays
2021-03-10 12:11:05 +01:00
Dimitri Sabadie
d7008418b7
Fix a typo in the Lua documentation for nvim_create_namespace().
2021-03-04 13:48:13 +01:00
Björn Linse
4781333a7a
decorations: allow virt_text overlay at any column
2021-02-22 09:40:06 +01:00
Björn Linse
d623400cad
Merge pull request #13944 from chentau/on_bytes_doc
...
Doc: update documentation for on_bytes
2021-02-17 13:14:18 +01:00
chentau
d966e0142d
Doc: update documentation for on_bytes
2021-02-17 00:47:19 -08:00
Björn Linse
772421f6b1
Merge pull request #13692 from mjlbach/fix_cursor_respect_current_line
...
fix_cursor: do not change line number when edit will not impact cursor row
2021-02-16 18:32:38 +01:00
Björn Linse
94622ca66b
buffer updates: add on_reload callback and handle it in treesitter parser
2021-02-10 18:58:46 +01:00
chentau
05605bfc05
correctly mark changed regions for set_text
2021-02-07 13:50:29 -08:00
Michael Lingelbach
9f2335937e
fix_cursor: do not change line number when edit will not impact cursor
...
row
2021-01-31 11:57:22 -08:00
Thomas Vigouroux
8950f4e94a
Merge pull request #13784 from runiq/get_extmark_by_id-limit_break
...
doc: remove nvim_buf_get_extmark_by_id limit opt
2021-01-28 18:27:24 +01:00
Patrice Peterson
fe02c65395
doc: remove nvim_buf_get_extmark_by_id limit opt
...
Passing any key but `details` in the opts results in an error.
2021-01-18 13:34:08 +01:00
chentau
2ac0ca2025
change end_right_gravity error behavior
2021-01-12 18:32:16 -08:00
chentau
231f75e086
change gravity to be a boolean flag, and add corresponding flag for end position of extmark
2021-01-05 00:28:34 -08:00
chentau
10b278bdae
allow for extmark gravity to be set through api
2021-01-03 13:59:24 -08:00
Björn Linse
39d098f9f9
api: set_text: fix some byte count issues
...
add byte count tests
update documentation
2021-01-01 19:51:58 +01:00
chentau
f7d01a65d5
api: set_text: more tests, and fixing lint
...
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
2021-01-01 19:51:58 +01:00
Tony Chen
45b14f88db
api: set_text: rebase, update to new api, and add more tests
2021-01-01 19:51:45 +01:00
Blaž Hrastnik
29ad2ebc16
api: set_text: fix validation and some issues
...
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.
2021-01-01 19:51:37 +01:00
Björn Linse
9be19b770d
api: set_text: first stab at nvim_buf_set_text
2021-01-01 19:51:24 +01:00
Björn Linse
2debabb080
Merge pull request #13355 from notomo/check-textlock-in-api
...
api: add textlock check
2020-12-16 15:40:21 +01:00
Thomas Vigouroux
25e20da550
feat(buffer_updates): allow ignoring when previewing
...
Also adds a test that we actually subscribe to buffer events when in
CMDPREVIEW.
2020-12-15 22:29:27 +01:00
notomo
356319f356
api: add textlock check
2020-12-15 20:24:33 +09:00
Björn Linse
b1ef6de620
api: move deprecated functions to separate files
...
Most these are just calls to non-deprecated variants, and take up
unnecessary space and search hits in the other files.
2020-12-05 14:34:17 +01:00
Thomas Vigouroux
c0a6989d93
feat(luahl): add priority mechanism
...
Base priority is 0x1000, in order to stay kinda backward compatible.
Also set tree-sitter default highlight to 100 (middle-ish value)
2020-11-25 10:10:05 +01:00
Björn Linse
8497d4b3ea
decoration: split out "decoration" from "extmark" module
...
Decorations will only grow more complex. move the to a separate
file, so that extmark.c remains about extmarks.
2020-11-07 09:55:17 +01:00
Björn Linse
c146eddc8b
api: add API for themes
...
co-author: hlpr98 <hlpr98@gmail.com > (dict2hlattrs function)
orange is sus??
NOVEMBER DAWN
erase the lie that is redraw_later()
2020-11-01 19:14:56 +01:00
TJ DeVries
a83b76790b
fixup: fixup: fixup: fixup:
2020-10-22 16:21:35 -04:00
TJ DeVries
1afe6dd2f4
fixup: bfredl comments
2020-10-22 16:08:32 -04:00
TJ DeVries
78556aba7d
api: nvim_buf_delete
2020-10-22 16:08:32 -04:00
Björn Linse
0b615dae07
api: multiple decoration providers at once
2020-10-10 15:16:45 +02:00
G-flat
8972eea2e1
PVS/V1001: Remove assignment to unused variable
2020-10-05 15:17:14 +08:00
erw7
f1b39f91a5
extmark: Change nvim_buf_set_extmark to not create undo data
2020-10-02 11:41:30 +09:00
erw7
620c8fdfe9
extmark: fix decoration ploblems with extmark
...
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.
2020-10-02 11:41:30 +09:00
Thomas Vigouroux
cecc45efb1
api(extmarks): allow extrange past final newline
2020-09-17 21:23:52 +02:00
Björn Linse
ead2fcf4ee
api: add nvim_buf_call to call function with curbuf changed to buffer
2020-09-13 09:11:38 +02:00
Björn Linse
4042975df4
luahl: global the luahl
2020-09-13 07:46:39 +02:00
Björn Linse
18a3a89822
luahl
2020-09-13 07:46:39 +02:00
Björn Linse
5f3ddb195e
lua: cleanup naming conventions of executor functions
2020-09-10 10:02:41 +02:00