aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
Commit message (Collapse)AuthorAge
* refactor: format #15702dundargoc2021-09-18
|
* refactor(runtime): always use DIP_START when searching for runtime filesBjörn Linse2021-09-18
| | | | | | | | Now remove the addition of "start/*" packages in 'packpath' as explicit items in 'runtimepath'. This avoids 'runtimepath' from becoming very long when using a lot of plugins as packages. To get the effective search path as a list, use |nvim_list_runtime_paths()|
* feat(api): convert Blobs to API stringsSean Dewar2021-09-15
| | | | Note that these are not NUL-terminated; the API supports this.
* vim-patch:8.1.0735: cannot handle binary dataSean Dewar2021-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot handle binary data. Solution: Add the Blob type. (Yasuhiro Matsumoto, closes vim/vim#3638) https://github.com/vim/vim/commit/6e5ea8d2a995b32bbc5972edc4f827b959f2702f Nvim-specific Blob conversions are implemented in future commits. Refactor write_blob() to use a FileDescriptor, as f_writefile() was refactored to use one (does not apply to read_blob()). Use var_check_lock() in f_add() for Blobs from v8.1.0897. Add a modeline to test_blob.vim and fix some doc typos. Include if_perl.txt's VIM::Blob() documentation. Interestingly, this function already worked before this port, as it just returns a Blob string literal, not an actual Blob object. N/A patches for version.c: vim-patch:8.1.0741: viminfo with Blob is not tested Problem: Viminfo with Blob is not tested. Solution: Extend the viminfo test. Fix reading a blob. Fixed storing a special variable value. https://github.com/vim/vim/commit/8c8b8bb56c724cc1bfc3d8520eec33f2d399697c vim-patch:8.1.1022: may use NULL pointer when out of memory Problem: May use NULL pointer when out of memory. (Coverity) Solution: Check for blob_alloc() returning NULL. https://github.com/vim/vim/commit/e142a9467a7f6845a426d8db6efedf246d3c13ac
* feat(api): win_viewport also sends line_count #15613Yatao Li2021-09-10
|
* docs: extmarks indexing #15311Justin M. Keyes2021-09-10
| | | | ref #11456
* 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
* feat(api): nvim_get_chan_info: include "argv" for jobs #15537Justin M. Keyes2021-09-01
| | | ref #15440
* perf(api): avoid spurious allocations when converting small objectsBjörn Linse2021-08-28
| | | | | | | Converter functions use a heap-allocated stack to handle complex nested objects. However, these are often called with simple, primitive values like integers or bools wrapped in an Object. Avoid the memory allocation in this case using kvec_withinit_t
* Merge #15293 Vimscript "method" syntaxJustin M. Keyes2021-08-26
|\ | | | | Port VimL's method call syntax - vim-patch:8.1.{1638,1800,1803,1807,1809,1816,1820,1821,1828,1834,1835,1861,1863,1878,1879,1888,1909,1911,1912}
| * vim-patch:8.1.1800: function call functions have too many argumentsSean Dewar2021-08-12
| | | | | | | | | | | | | | | | | | | | Problem: Function call functions have too many arguments. Solution: Pass values in a funcexe_T struct. https://github.com/vim/vim/commit/c6538bcc1cdd1fb83732f22fdc69bd9bb66f968a Use FUNCEXE_INIT to initialize funcexe_T instances. call_callback() and other Vim listener related stuff is N/A.
* | refactor(map): remove extra-allocating map_new/map_free functionsBjörn Linse2021-08-22
| | | | | | | | | | | | | | | | | | | | Note: the reason for removing them is not that there after this refactor is no use of them, but rather that having them available is an anti-pattern: they manange an _extra_ heap allocation which has nothing to do with the functionality of the map itself (khash manages the real buffers internally). In case there happens to be a reason to allocate the map structure itself later, this should be made explicit using xcalloc/xfree calls.
* | refactor(api): remove unneccesary indirection around handlesBjörn Linse2021-08-22
| | | | | | | | | | These things are just maps to pointers, no need to perform a huge song and dance around it.
* | refactor(map): get rid of spurious subsystem_init() functions due to mapsBjörn Linse2021-08-22
|/
* Merge pull request #15336 from bfredl/plinesBjörn Linse2021-08-11
|\ | | | | refactor(plines): move "plines" (size of printed lines) family of function to own file
| * refactor(plines): remove implicit curwin plines() functionBjörn Linse2021-08-10
| |
* | refactor(api): remove redundant api_set_errorJavier López2021-08-10
|/ | | | This error is already handled by 'find_buffer_by_handle'
* refactor: remove remaining references to nvim_buf_set_virtual_textGregory Anders2021-08-03
|
* refactor: PVS/V501: removed duplicate sub-expression 'chunk.size > 2'Dundar Göc2021-07-30
|
* 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.
* chore: use codespell to spell check #15016dundargoc2021-07-07
|
* clang/'Dead initialization': don't assign unused value to variable "string" ↵dundargoc2021-07-07
| | | | #15015
* Merge pull request #14864 from seandewar/get-config-zindexBjörn Linse2021-07-02
|\ | | | | fix(api/win_get_config): include z-index
| * fix(api/win_get_config): include z-indexSean Dewar2021-06-19
| |
* | [RDY] Add buffer information to tabline_update (#12481)John Gehrig2021-06-27
|/ | | | | | | | | | * Add buffer information to tabline_update Most terminal implementations of the tabline display buffer and tab information. Many neovim-qt users disable GuiTabline because it lacks functionality provided in the terminal implementation. The tabline_update event should include buffer information too, so client GUIs can display rich useful tabs.
* perf(extmarks): allow ephemeral extmarks past EOFThomas Vigouroux2021-06-16
|
* feat(float): add rounded borders presetChristian Clason2021-06-14
| | | | | | | | Add `borders = "rounded"` preset for `nvim_open_win`, equivalent to border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"} Also add undocumented "solid" preset to docs.
* api:get_config: don't add border="none" (inactive default)Björn Linse2021-06-10
|
* fix linter errorsCorey Williamson2021-06-10
|
* api: include border in nvim_win_get_configCorey Williamson2021-06-10
|
* Merge pull request #14717 from notomo/add-win-call-apiBjörn Linse2021-06-10
|\ | | | | api: add nvim_win_call
| * api: add nvim_win_callnotomo2021-06-10
| |
* | 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
| |
* | clang/'Logic error': assert get_decor_provider(id, true) returns nonnullJan Edmund Lazo2021-06-02
| | | | | | | | | | nvim_set_decoration_provider() has undefined behavior (if not crash) if get_decor_provider() returns NULL.
* | api(parse_float_config): use api_object_to_bool()Sean Dewar2021-06-01
| |
* | api(nvim_open_win): add "noautocmd" optionSean Dewar2021-06-01
| | | | | | | | | | | | This option, when set, stops nvim_open_win() from potentially firing buffer-related autocmd events (BufEnter, BufLeave and BufWinEnter in the case of nvim_open_win()).
* | Merge pull request #14531 from janlazo/revert-noblockJan Edmund Lazo2021-05-31
|\ \ | | | | | | Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
| * | Revert "api/window: use the "noblock" variants in nvim_win_set_buf"Jan Edmund Lazo2021-05-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1def3d1542d6a65f057e743faea39a760b50db87. Plugins may depend on catching the following events when creating windows: - BufWinEnter - BufEnter - BufLeave Risky to introduce this breaking change on 0.5 release when 0.5 release should be out by now. https://github.com/asvetliakov/vscode-neovim/issues/632#issuecomment-837201224
* | | lua: Add vim.opt and fix scopes of vim.o (#13479)TJ DeVries2021-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lua: Add vim.opt * fixup: cleaning * fixup: comments * ty clason * fixup: comments * this is the last commit. period.
* | | lua: use proper conversion of vim.g valuesBjörn Linse2021-05-19
| | |
* | | Merge pull request #14468 from bfredl/zindexBjörn Linse2021-05-15
|\ \ \ | | | | | | | | [WIP] z-index!
| * | | floats: z-indexBjörn Linse2021-05-15
| | | |
* | | | fixup! refactor nvim_buf_set_lines to use extmark_spliceJan Edmund Lazo2021-05-12
|/ / /
* | | Merge pull request #14243 from shadmansaleh/Allow_cterm_colors_nvim_set_hlBjörn Linse2021-05-11
|\ \ \ | |/ / |/| | API: Adding cterm support to nvim_set_hl
| * | Make clint happy about spaces.shadmansaleh2021-03-29
| | |