Justin M. Keyes
93c6eb4a66
PVS/V618: fix printf-style args #11888
...
We intentionally do not translate API errors.
ref: https://github.com/neovim/neovim/issues/6150
2020-02-22 12:59:39 -08:00
Bruno Roy
a26943e9b3
clang bug: Dead assignment ns_id
...
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
2020-02-13 23:09:42 -08:00
Björn Linse
7d7adf7acc
treesitter: cleanup some luahl stuff
2020-02-10 13:10:15 +01:00
Björn Linse
95fd28f4a1
treesitter: use internal "decorations" buffer
2020-02-10 13:10:15 +01:00
Björn Linse
ef2e6522c5
tests: bail out on libdir just like $VIMRUNTIME, it cannot be calculated
2020-02-07 09:32:25 +01:00
Björn Linse
7ce9a5c7da
api: add nvim_get_runtime_file for finding runtime files
2020-02-07 09:22:55 +01:00
Björn Linse
48a869dc6d
shed biking: it's always extmarks, never marks extended
2020-01-20 19:36:35 +01:00
Björn Linse
6e78b21623
Merge pull request #11563 from bfredl/mark_madness
...
extmarks: mark sanity/madness
2020-01-16 15:31:05 +01:00
Björn Linse
ca1a00edd6
extmarks/bufhl: reimplement using new marktree data structure
...
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
2020-01-16 12:36:10 +01:00
Daniel Hahler
8ba3354d74
api_set_error: include expression with "Failed to evaluate expression" ( #11713 )
2020-01-15 09:08:22 +01:00
Daniel Hahler
3d1531aee5
API: include invalid buffer/window/tabpage in error message ( #11712 )
2020-01-14 09:21:10 +01:00
Jan Edmund Lazo
3a3fb08602
vim-patch:8.1.0851: feedkeys() with "L" does not work properly
...
Problem: feedkeys() with "L" does not work properly.
Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi,
closes vim/vim#3885 )
8d4ce56a19
2020-01-05 10:35:49 -05:00
Ghjuvan Lacambre
dc6077535f
API: fix crash on copy_object(kObjectTypeWindow) #11651
...
Closes #11646
2020-01-02 02:00:39 -08:00
Justin M. Keyes
27b678f577
gen_vimdoc.py: fix deprecated check
2019-12-30 00:15:49 -08:00
Jan Edmund Lazo
362c3a3ccf
api/vim: fix pvs/v1048
2019-12-26 00:29:14 -05:00
Björn Linse
440695c296
tree-sitter: implement query functionality and highlighting prototype [skip.lint]
2019-12-22 12:51:46 +01:00
Justin M. Keyes
a3b6c2a3dc
API: rename nvim_execute_lua => nvim_exec_lua
...
- We already find ourselves renaming nvim_execute_lua in tests and
scripts, which suggests "exec" is the verb we actually want.
- Add "exec" verb to `:help dev-api`.
2019-12-02 22:06:42 -08:00
Justin M. Keyes
c34130d13a
API: deprecate nvim_command_output
2019-12-02 20:52:06 -08:00
Justin M. Keyes
b1991f66d5
API: rename nvim_source => nvim_exec
...
- Eliminate nvim_source_output(): add boolean `output` param to
nvim_exec() instead.
2019-12-01 22:35:15 -08:00
Vikram Pal
bd43e011b5
API: nvim_source_output
...
- Similar to nvim_source but will capture the output
- Add meaningful VimL tracebacks for nvim_source
- Handle got_int
- Add error reporting
2019-12-01 19:07:57 -08:00
Justin M. Keyes
276c2da286
API: nvim_source: fix multiline input
...
- DOCMD_REPEAT is needed to source all lines of input.
- Fix ":verbose set {option}?" by handling SID_STR in get_scriptname().
closes #8722
2019-12-01 16:09:24 -08:00
Vikram Pal
0a8d145075
API: nvim_source: save/restore script context #11159
...
Use a constant for the script id.
2019-12-01 16:09:24 -08:00
Siddhant Gupta
6aa03e86da
API: nvim_source
2019-12-01 16:09:24 -08:00
Justin M. Keyes
f6e7857c54
floatwin: show error if window is closed immediately #11476
...
Autocmds may close window while it is being entered, then
win_set_minimal_style(wp) operates on an invalid pointer.
We could silently ignore this instead, but it is unlikely to be
intentional, so it is more useful to show an error.
fix #11383
2019-11-29 23:48:14 -08:00
notomo
4a77df2e51
[RFC] extmark: fix E315 in nvim_buf_set_extmark ( #11449 )
...
extmark: need to use buf instead of curbuf
2019-11-25 16:50:30 +01:00
Justin M. Keyes
fd5710ae9a
doc + extmarks tweaks #11421
...
- nvim_buf_get_extmarks: rename "amount" => "limit"
- rename `set_extmark_index_from_obj`
2019-11-25 01:08:02 -08:00
Dennis B
d5f14b8372
Clear 'cc' in nvim_open_win 'minimal' style #11361 ( #11427 )
...
* Clear 'cc' in nvim_open_win 'minimal' style #11361
Add 'colorcolumn' to the list of options that should be cleared when creating
a 'minimal'-style floating window.
2019-11-22 10:55:04 +01:00
Justin M. Keyes
af53a0c012
doc: Lua [ci skip] #11378
...
- Rework :help lua-commands
- Rename if_lua.txt => lua.txt
2019-11-17 19:06:59 -08:00
Justin M. Keyes
2d7e1c32a8
extmark: rename ExtendedMark => Extmark
2019-11-11 22:12:59 -08:00
Justin M. Keyes
54473e9a67
doc [ci skip]
2019-11-11 22:12:59 -08:00
Björn Linse
122426966e
Merge pull request #11356 from bfredl/extmark2
...
extmark API feature
2019-11-11 21:48:14 +01:00
Björn Linse
18a8b702c0
extmark: review changes
2019-11-11 20:18:15 +01:00
timeyyy
a9065a5051
nsmarks: initial commit
2019-11-11 19:43:15 +01:00
Timothy C Eichler
e757f4d536
namespace: add ns_initialized func
2019-11-11 19:43:15 +01:00
Marco Hinz
181486d7e6
api: fix typo in debug function name
2019-11-11 19:25:10 +01:00
Marco Hinz
1cb4674547
api: add nvim_buf_get_virtual_text() ( #11354 )
...
This adds the missing partner function of nvim_buf_set_virtual_text().
2019-11-10 16:38:04 +01:00
Justin M. Keyes
7a23b67d35
paste: Select-mode, Visual-mode #11360
...
fix #11344
2019-11-09 21:18:51 -08:00
Justin M. Keyes
9ef16a1628
doc: vim.fn, vim.call(), vim.api [ci skip]
2019-11-06 01:37:50 -08:00
Justin M. Keyes
efaf4732e2
lua/executor.c: use TRY_WRAP
2019-10-29 22:39:07 -07:00
Justin M. Keyes
ffdf8c4c12
Context: rename "buflist" => "bufs"
...
Given the other type names "jumps", "vars", etc., the name "buflist"
is somewhat unintuitive.
2019-09-14 18:57:35 -07:00
Justin M. Keyes
f2c75ef9b4
API: nvim_get_context: "opts" param
...
Since the parameter is already non-primitive, make it an `opts` map
instead of just a list, in case we want to extend it later.
2019-09-14 18:57:35 -07:00
Justin M. Keyes
6dd56d0902
UIAttach, UIDetach
...
doc: ginit.vim, gvimrc
fix #3656
2019-09-12 17:04:05 -07:00
Rui Abreu Ferreira
e9cf515888
UIAttach, UIDetach
2019-09-12 15:52:54 -07:00
Jan Edmund Lazo
6508215b5c
Remove excess <stdint.h>
2019-09-11 22:27:45 -04:00
Justin M. Keyes
06bfb07e35
doc
...
fix #10127
fix #5972
2019-09-11 00:10:27 -07:00
Daniel Hahler
1adbdb397d
doc: nvim_ui_pum_set_height [ci skip]
2019-09-10 23:27:00 -07:00
Björn Linse
e5d5fc0857
doc/API/lua: detaching Lua buffer callbacks
2019-09-09 10:52:12 -07:00
Justin M. Keyes
456f1d4bdd
doc: |api-fast| [ci skip]
2019-09-09 10:52:12 -07:00
Justin M. Keyes
81c3fa6c9d
doc
2019-09-09 09:53:19 -07:00
erw7
55b1126a22
Add nvim_ui_pum_set_height to api
2019-09-08 12:25:49 +09:00