aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
Commit message (Collapse)AuthorAge
...
* api: set_text: fix validation and some issuesBlaž Hrastnik2021-01-01
| | | | | | | | | | | | 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: set_text: first stab at nvim_buf_set_textBjörn Linse2021-01-01
|
* Merge pull request #13355 from notomo/check-textlock-in-apiBjörn Linse2020-12-16
|\ | | | | api: add textlock check
| * api: add textlock checknotomo2020-12-15
| |
* | feat(buffer_updates): allow ignoring when previewingThomas Vigouroux2020-12-15
|/ | | | | Also adds a test that we actually subscribe to buffer events when in CMDPREVIEW.
* api: move deprecated functions to separate filesBjörn Linse2020-12-05
| | | | | Most these are just calls to non-deprecated variants, and take up unnecessary space and search hits in the other files.
* feat(luahl): add priority mechanismThomas Vigouroux2020-11-25
| | | | | Base priority is 0x1000, in order to stay kinda backward compatible. Also set tree-sitter default highlight to 100 (middle-ish value)
* decoration: split out "decoration" from "extmark" moduleBjörn Linse2020-11-07
| | | | | Decorations will only grow more complex. move the to a separate file, so that extmark.c remains about extmarks.
* api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* fixup: fixup: fixup: fixup:TJ DeVries2020-10-22
|
* fixup: bfredl commentsTJ DeVries2020-10-22
|
* api: nvim_buf_deleteTJ DeVries2020-10-22
|
* api: multiple decoration providers at onceBjörn Linse2020-10-10
|
* PVS/V1001: Remove assignment to unused variableG-flat2020-10-05
|
* extmark: Change nvim_buf_set_extmark to not create undo dataerw72020-10-02
|
* extmark: fix decoration ploblems with extmarkerw72020-10-02
| | | | | | 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.
* api(extmarks): allow extrange past final newlineThomas Vigouroux2020-09-17
|
* api: add nvim_buf_call to call function with curbuf changed to bufferBjörn Linse2020-09-13
|
* luahl: global the luahlBjörn Linse2020-09-13
|
* luahlBjörn Linse2020-09-13
|
* lua: cleanup naming conventions of executor functionsBjörn Linse2020-09-10
|
* api/buffer: add "on_bytes" callback to nvim_buf_attachBjörn Linse2020-09-09
| | | | | | This implements byte-resolution updates of buffer changes. Note: there is no promise that the buffer state is valid inside the callback!
* doc: fix invalid help tags #12745Georgy Komarov2020-09-05
|
* API: be less breaking in the christmas tree decorationsBjörn Linse2020-09-04
|
* decor: sketch new decorations APIBjörn Linse2020-09-03
| | | | | | | | return decorations back lol no nvim_buf_get_virtual_text share decorations that are hl only to avoid alloc avalanche
* extmark: move id to dict in nvim_buf_set_extmarkBjörn Linse2020-09-03
|
* extmark: refiy "Decoration" abstractionBjörn Linse2020-09-03
| | | | one very important thought
* doc: fix scripts and regenerate (#12506)TJ DeVries2020-07-02
| | | | | | | | | | | | | | | | | * 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
* doc: fix vim.api.nvim_buf_attach callback argumentsHirokazu Hata2020-06-15
|
* pvs/v560: remove redundant line checkJan Edmund Lazo2020-04-13
|
* PVS/V618: fix printf-style args #11888Justin M. Keyes2020-02-22
| | | | We intentionally do not translate API errors. ref: https://github.com/neovim/neovim/issues/6150
* clang bug: Dead assignment `ns_id`Bruno Roy2020-02-13
| | | | | | | 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
* shed biking: it's always extmarks, never marks extendedBjörn Linse2020-01-20
|
* extmarks/bufhl: reimplement using new marktree data structureBjörn Linse2020-01-16
| | | | | | | | | | | | | | | | | | | | 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
* tree-sitter: implement query functionality and highlighting prototype ↵Björn Linse2019-12-22
| | | | [skip.lint]
* [RFC] extmark: fix E315 in nvim_buf_set_extmark (#11449)notomo2019-11-25
| | | | | extmark: need to use buf instead of curbuf
* doc + extmarks tweaks #11421Justin M. Keyes2019-11-25
| | | | - nvim_buf_get_extmarks: rename "amount" => "limit" - rename `set_extmark_index_from_obj`
* doc: Lua [ci skip] #11378Justin M. Keyes2019-11-17
| | | | - Rework :help lua-commands - Rename if_lua.txt => lua.txt
* extmark: rename ExtendedMark => ExtmarkJustin M. Keyes2019-11-11
|
* doc [ci skip]Justin M. Keyes2019-11-11
|
* Merge pull request #11356 from bfredl/extmark2Björn Linse2019-11-11
|\ | | | | extmark API feature
| * extmark: review changesBjörn Linse2019-11-11
| |
| * nsmarks: initial committimeyyy2019-11-11
| |
* | api: fix typo in debug function nameMarco Hinz2019-11-11
|/
* api: add nvim_buf_get_virtual_text() (#11354)Marco Hinz2019-11-10
| | | This adds the missing partner function of nvim_buf_set_virtual_text().
* doc: vim.fn, vim.call(), vim.api [ci skip]Justin M. Keyes2019-11-06
|
* doc/API/lua: detaching Lua buffer callbacksBjörn Linse2019-09-09
|
* doc: |api-fast| [ci skip]Justin M. Keyes2019-09-09
|
* API: nvim_buf_set_lines: handle 'nomodifiable' #10910Justin M. Keyes2019-09-01
|
* includesDaniel Hahler2019-08-07
|