df54d82b7c
refactor(misc1): move out high-level input functions to a new file: input.c
...
Possibly dialog code is messages.c could be moved here as well.
misc1.c is now empty, so delete it.
2021-12-10 18:15:33 +01:00
caa6992a10
chore: fix typos ( #16361 )
...
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
2021-11-27 11:10:48 -05:00
961cd83b3b
refactor(api/marks)!: add opts param for feature extensibility ( #16146 )
...
In the future we might want to extend the concept of named marks and
adding opts reduces the need of changing the function signature in the
furute.
2021-11-01 07:46:26 -06:00
c8882ca7e7
refactor(api): move extmark API to its own file
2021-10-25 22:33:40 +02:00
8d7816cf27
feat(decorations): support more than one virt_lines block
2021-10-23 14:17:09 +02:00
649b3160a1
refactor: reduce number of unique char casts ( #15995 )
2021-10-12 17:52:54 +02:00
40be47e0fa
refactor: format all C files under nvim/ #15977
...
* refactor: format all C files under nvim
* refactor: disable formatting for Vim-owned files:
* src/nvim/indent_c.c
* src/nvim/regexp.c
* src/nvim/regexp_nfa.c
* src/nvim/testdir/samples/memfile_test.c
2021-10-12 07:56:52 -07:00
b9a35ec7a4
Merge pull request #15934 from kylo252/replacement-size
...
fix(lint): remove redundant ternary operator
2021-10-07 18:57:48 +02:00
684299ed4c
Merge pull request #15941 from dundargoc/refactor/remove-redundant-casts
...
refactor: remove redundant casts
2021-10-07 18:39:27 +02:00
6d9dea4201
refactor: remove redundant casts
2021-10-07 13:16:55 +02:00
23383451b0
fix(api): fix nvim_buf_set_extmark
...
Fix the problem of calling clear_virttext on undefined variables.
2021-10-07 19:03:54 +09:00
47dd6c4f47
fix(lint): remove redundant ternary operator
...
The value of `new_len` will never be '0' since `replacement.size`
is checked against that early on.
2021-10-06 18:21:43 +02:00
49fdc62114
feat(api): named marks set, get, delete #15346
...
Adds the following API functions.
- nvim_buf_set_mark(buf, name, line, col)
* Set marks in a buffer.
- nvim_buf_del_mark(buf, name)
* Delete a mark that belongs to buffer.
- nvim_del_mark(name)
* Delete a global mark.
- nvim_get_mark(name)
* Get a global mark.
Tests:
- Adds test to all the new api functions, and adds more for the existing
nvim_buf_get_mark.
* Tests include failure cases.
Documentation:
- Adds documentation for all the new functions, and improves the
existing fucntion docs.
2021-10-05 08:49:20 -07:00
32565922ef
refactor(api): handle option dicts properly
...
Do not copy a lot of lua strings (dict keys) to just strequal() them
Just compare them directly to a dedicated hash function.
feat(generators): HASHY McHASHFACE
2021-10-03 10:46:57 +02:00
392c658d4d
feat(decorations): support virtual lines (for now: only one block at a time)
2021-09-26 12:19:54 +02:00
51a98aa0c2
refactor: format #15702
2021-09-18 09:34:23 -07:00
f8e406ed30
docs: extmarks indexing #15311
...
fix #11456
2021-09-10 18:31:11 -07:00
9b553ad28d
docs: extmark indexing #12742
...
Extmarks mostly use api-indexing, except for nvim_buf_get_extmarks(),
which uses api-indexing with inclusive ranges.
ref #11456
2021-09-10 17:59:28 -07:00
d475955ed3
refactor(api): remove redundant api_set_error
...
This error is already handled by 'find_buffer_by_handle'
2021-08-10 15:55:03 -05:00
25a879dfa2
feat(decorations): deprecate nvim_buf_set_virtual_text
...
Full virt_text functionality is provided by nvim_buf_set_extmark
2021-07-29 20:36:12 +02:00
a4d81a8002
refactor(decorations): merge the two different code paths for virt_text
...
test(bufhl): CHANGE of tested behaviour (inb4 a proper priority mechanism)
test(decoration): change of test; previous behavior was buggy (ghost
buffer text)
2021-07-29 20:34:42 +02:00
1495d36d63
feat(decorations): allow more than one stacked highlight in a virt_text
2021-07-29 20:34:20 +02:00
3fd4f2f611
fix: fix incorrect call sites of xcalloc
...
The number of elements comes first and the size of each element second.
2021-07-24 15:52:14 -06:00
a85e8a186b
perf(extmarks): allow ephemeral extmarks past EOF
2021-06-16 20:15:47 +02:00
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
89e29e8774
fixup! refactor nvim_buf_set_lines to use extmark_splice
2021-05-12 19:13:28 -04:00
e5c22f6347
Fix nvim_buf_set_lines
2021-05-10 13:31:06 +02:00
5ea9cbc280
Update the functio documentation in C
2021-05-10 11:27:48 +02:00
13a9bd006f
make get_region_bytecount end-exclusive
2021-05-09 16:23:01 -07:00
a847abc21b
refactor nvim_buf_set_lines to use extmark_splice
2021-05-09 16:22:20 -07:00
b274b9887a
fix(gcc): compile warning in nvim_buf_set_extmark
2021-05-05 02:15:51 +01:00
0865f1238f
decorations: right_align and win_col
2021-05-01 11:48:04 +02:00
7b488314d0
decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
2021-04-14 13:04:33 +02:00
d7a1bbd81a
docs: add priority option in buf_set_extmark
2021-04-07 15:36:46 +02:00
a0b7bb4153
luaref: free all references in buffer_updates
2021-04-03 16:27:58 +02:00
425bc438ae
decorations: add additional styling of virt_text overlays
2021-03-10 12:11:05 +01:00
d7008418b7
Fix a typo in the Lua documentation for nvim_create_namespace().
2021-03-04 13:48:13 +01:00
4781333a7a
decorations: allow virt_text overlay at any column
2021-02-22 09:40:06 +01:00
d623400cad
Merge pull request #13944 from chentau/on_bytes_doc
...
Doc: update documentation for on_bytes
2021-02-17 13:14:18 +01:00
d966e0142d
Doc: update documentation for on_bytes
2021-02-17 00:47:19 -08:00
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
94622ca66b
buffer updates: add on_reload callback and handle it in treesitter parser
2021-02-10 18:58:46 +01:00
05605bfc05
correctly mark changed regions for set_text
2021-02-07 13:50:29 -08:00
9f2335937e
fix_cursor: do not change line number when edit will not impact cursor
...
row
2021-01-31 11:57:22 -08:00
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
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
2ac0ca2025
change end_right_gravity error behavior
2021-01-12 18:32:16 -08:00
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
10b278bdae
allow for extmark gravity to be set through api
2021-01-03 13:59:24 -08:00
39d098f9f9
api: set_text: fix some byte count issues
...
add byte count tests
update documentation
2021-01-01 19:51:58 +01:00