aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
Commit message (Collapse)AuthorAge
...
* refactor(api/marks)!: add opts param for feature extensibility (#16146)Javier Lopez2021-11-01
| | | | | 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.
* refactor(api): move extmark API to its own fileBjörn Linse2021-10-25
|
* feat(decorations): support more than one virt_lines blockBjörn Linse2021-10-23
|
* refactor: reduce number of unique char casts (#15995)dundargoc2021-10-12
|
* refactor: format all C files under nvim/ #15977dundargoc2021-10-12
| | | | | | | | * 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
* Merge pull request #15934 from kylo252/replacement-sizeBjörn Linse2021-10-07
|\ | | | | fix(lint): remove redundant ternary operator
| * fix(lint): remove redundant ternary operatorkylo2522021-10-06
| | | | | | | | | | The value of `new_len` will never be '0' since `replacement.size` is checked against that early on.
* | Merge pull request #15941 from dundargoc/refactor/remove-redundant-castsBjörn Linse2021-10-07
|\ \ | | | | | | refactor: remove redundant casts
| * | refactor: remove redundant castsDundar Göc2021-10-07
| |/
* / fix(api): fix nvim_buf_set_extmarkerw72021-10-07
|/ | | | Fix the problem of calling clear_virttext on undefined variables.
* feat(api): named marks set, get, delete #15346Javier Lopez2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | 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.
* refactor(api): handle option dicts properlyBjörn Linse2021-10-03
| | | | | | | 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
* feat(decorations): support virtual lines (for now: only one block at a time)Björn Linse2021-09-26
|
* refactor: format #15702dundargoc2021-09-18
|
* docs: extmarks indexing #15311Javier López2021-09-10
| | | | fix #11456
* docs: extmark indexing #12742Patrice Peterson2021-09-10
| | | | | | | Extmarks mostly use api-indexing, except for nvim_buf_get_extmarks(), which uses api-indexing with inclusive ranges. ref #11456
* refactor(api): remove redundant api_set_errorJavier López2021-08-10
| | | | This error is already handled by 'find_buffer_by_handle'
* feat(decorations): deprecate nvim_buf_set_virtual_textBjörn Linse2021-07-29
| | | | Full virt_text functionality is provided by nvim_buf_set_extmark
* refactor(decorations): merge the two different code paths for virt_textBjörn Linse2021-07-29
| | | | | | test(bufhl): CHANGE of tested behaviour (inb4 a proper priority mechanism) test(decoration): change of test; previous behavior was buggy (ghost buffer text)
* feat(decorations): allow more than one stacked highlight in a virt_textBjörn Linse2021-07-29
|
* fix: fix incorrect call sites of xcallocGregory Anders2021-07-24
| | | | The number of elements comes first and the size of each element second.
* perf(extmarks): allow ephemeral extmarks past EOFThomas Vigouroux2021-06-16
|
* Merge pull request #14510 from urandom/doc_nvim_buf_set_extmarkBjörn Linse2021-06-10
|\ | | | | Minor observational corrections to the nvim_buf_set_extmark documentation
| * Update the functio documentation in CViktor Kojouharov2021-05-10
| |
* | fixup! refactor nvim_buf_set_lines to use extmark_spliceJan Edmund Lazo2021-05-12
| |
* | Fix nvim_buf_set_linesdisrupted2021-05-10
| |
* | make get_region_bytecount end-exclusivechentau2021-05-09
| |
* | refactor nvim_buf_set_lines to use extmark_splicechentau2021-05-09
|/
* fix(gcc): compile warning in nvim_buf_set_extmarkSean Dewar2021-05-05
|
* decorations: right_align and win_colBjörn Linse2021-05-01
|
* decoration: Clean up duplicate Decoration attributes + bonus hl_eol flagBjörn Linse2021-04-14
|
* docs: add priority option in buf_set_extmarkThomas Vigouroux2021-04-07
|
* luaref: free all references in buffer_updatesBjörn Linse2021-04-03
|
* decorations: add additional styling of virt_text overlaysBjörn Linse2021-03-10
|
* Fix a typo in the Lua documentation for nvim_create_namespace().Dimitri Sabadie2021-03-04
|
* decorations: allow virt_text overlay at any columnBjörn Linse2021-02-22
|
* Merge pull request #13944 from chentau/on_bytes_docBjörn Linse2021-02-17
|\ | | | | Doc: update documentation for on_bytes
| * Doc: update documentation for on_byteschentau2021-02-17
| |
* | Merge pull request #13692 from mjlbach/fix_cursor_respect_current_lineBjörn Linse2021-02-16
|\ \ | |/ |/| fix_cursor: do not change line number when edit will not impact cursor row
| * fix_cursor: do not change line number when edit will not impact cursorMichael Lingelbach2021-01-31
| | | | | | | | row
* | buffer updates: add on_reload callback and handle it in treesitter parserBjörn Linse2021-02-10
| |
* | correctly mark changed regions for set_textchentau2021-02-07
|/
* Merge pull request #13784 from runiq/get_extmark_by_id-limit_breakThomas Vigouroux2021-01-28
|\ | | | | doc: remove nvim_buf_get_extmark_by_id limit opt
| * doc: remove nvim_buf_get_extmark_by_id limit optPatrice Peterson2021-01-18
| | | | | | | | Passing any key but `details` in the opts results in an error.
* | change end_right_gravity error behaviorchentau2021-01-12
| |
* | change gravity to be a boolean flag, and add corresponding flag for end ↵chentau2021-01-05
| | | | | | | | position of extmark
* | allow for extmark gravity to be set through apichentau2021-01-03
|/
* api: set_text: fix some byte count issuesBjörn Linse2021-01-01
| | | | | | add byte count tests update documentation
* api: set_text: more tests, and fixing lintchentau2021-01-01
| | | | | | | | 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
* api: set_text: rebase, update to new api, and add more testsTony Chen2021-01-01
|