Jan Edmund Lazo
e8f0ff1d48
Merge pull request #14531 from janlazo/revert-noblock
...
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
2021-05-31 21:57:44 -04:00
TJ DeVries
43956dea55
lua: Add vim.opt and fix scopes of vim.o ( #13479 )
...
* lua: Add vim.opt
* fixup: cleaning
* fixup: comments
* ty clason
* fixup: comments
* this is the last commit. period.
2021-05-28 17:24:48 +02:00
Björn Linse
7fbf3bf18b
lua: use proper conversion of vim.g values
2021-05-19 19:29:19 +02:00
Björn Linse
0cd1430316
Merge pull request #14468 from bfredl/zindex
...
[WIP] z-index!
2021-05-15 14:44:22 +02:00
Björn Linse
edb5864a29
floats: z-index
2021-05-15 13:56:27 +02:00
Jan Edmund Lazo
89e29e8774
fixup! refactor nvim_buf_set_lines to use extmark_splice
2021-05-12 19:13:28 -04:00
Björn Linse
7d82ea0102
Merge pull request #14243 from shadmansaleh/Allow_cterm_colors_nvim_set_hl
...
API: Adding cterm support to nvim_set_hl
2021-05-11 15:07:00 +02:00
Jan Edmund Lazo
7af26e5116
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
...
This reverts commit 1def3d1542
.
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
2021-05-10 18:32:26 -04:00
disrupted
e5c22f6347
Fix nvim_buf_set_lines
2021-05-10 13:31:06 +02:00
chentau
13a9bd006f
make get_region_bytecount end-exclusive
2021-05-09 16:23:01 -07:00
chentau
a847abc21b
refactor nvim_buf_set_lines to use extmark_splice
2021-05-09 16:22:20 -07:00
Jan Edmund Lazo
5165513198
Merge pull request #13664 from ivechan/win_exectute
...
vim-patch:8.1.{1418,1425,1832,2124},8.2.{0137, 2340}
2021-05-07 08:34:28 -04:00
jing
1def3d1542
api/window: use the "noblock" variants in nvim_win_set_buf
...
after commit 92c6383cdca977("vim-patch:8.1.1425: win_execute() does not set window pointers properly"),
nvim_win_set_buf can use switch_win_noblock and restore_win_noblock.
It makes nvim_win_set_buf don't block autocmds so that it will be more
"without side-effects" as said in help text.
Signed-off-by: jing <lhchenjw@gmail.com >
2021-05-06 23:45:16 +08:00
Sean Dewar
b274b9887a
fix(gcc): compile warning in nvim_buf_set_extmark
2021-05-05 02:15:51 +01:00
Julian Berman
ef81999f4e
fix: make nvim_win_get_number() return win number ( #14470 )
...
Closes https://github.com/neovim/neovim/issues/14467
2021-05-01 16:57:05 +02:00
Björn Linse
0865f1238f
decorations: right_align and win_col
2021-05-01 11:48:04 +02:00
Michael Bleuez
684b4ae736
doc : fixing missing @return in nvim_open_term doc
2021-04-24 12:47:52 +02:00
Shadman
01493e7990
api: fix nvim_exec() silencing behaviour ( #14413 )
...
Previously nvim_exec would silent output no matter whether output
is true or false.
Now output is only silent and captured when output is true.
2021-04-21 10:41:37 +02:00
Björn Linse
3b01e37d09
Merge pull request #14358 from bfredl/decodeco
...
decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
2021-04-15 01:12:36 +02:00
Björn Linse
7b488314d0
decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
2021-04-14 13:04:33 +02:00
Marco Hinz
4a36ec6da0
float: add "solid" border style ( #14310 )
...
It looks solid with the default `FloatBorder` group.
If you set the bgcolor of FloatBorder to the same color as for FloatNormal, you
effectively get an "1-cell padding".
2021-04-12 20:51:05 +02:00
Thomas Vigouroux
d7a1bbd81a
docs: add priority option in buf_set_extmark
2021-04-07 15:36:46 +02:00
Björn Linse
9b2d4ff625
Merge pull request #14227 from bfredl/bordaa3
...
Border: allow to enable/disable specific border edges
2021-04-05 00:21:51 +02:00
Björn Linse
a4d3804837
Border: allow to enable/disable specific border edges
2021-04-04 18:32:31 +02:00
Björn Linse
3d6831a30a
api: fix use-after-free in nvim_chan_send
2021-04-04 18:11:48 +02:00
Björn Linse
623fe4dc7e
luaref: free decoration providers
2021-04-03 16:27:58 +02:00
Björn Linse
a0b7bb4153
luaref: free all references in buffer_updates
2021-04-03 16:27:58 +02:00
Björn Linse
5ed383057b
lua: track reference ownership with ASAN when present
2021-04-03 16:27:58 +02:00
Jan Edmund Lazo
49706a1842
clang/'Logic error': fix loop cond to avoid nullptr deref
...
nvim_set_decoration_provider() has insufficient null checks.
2021-04-02 08:38:37 -04:00
shadmansaleh
fd62d39835
Make clint happy about spaces.
2021-03-29 13:52:28 +06:00
shadmansaleh
fdbba2ccf7
Api: Adding cterm color support to nvim_set_hl
2021-03-29 09:48:07 +06:00
Björn Linse
6d4a922e07
Merge pull request #14091 from euclidianAce/euclidianAce/nvim_win_hide
...
api: add vim.api.nvim_win_hide
2021-03-28 19:07:56 +02:00
Björn Linse
243820ebd0
floats: add borders (MS-DOS MODE)
2021-03-22 23:18:40 +01:00
Björn Linse
e5cfc7f3a0
wheel: move non-window code out of window.c
2021-03-22 15:42:26 +01:00
Björn Linse
08ca5207cd
w_grid_alloc: baseline impl
2021-03-22 15:42:26 +01:00
Björn Linse
bb6d2c9b7c
api: destabilize nvim_set_hl_ns
...
The sematics and signature of this API is going to change, but we
don't wanna delay 0.5 for it. Mark API as unstable for now.
2021-03-15 09:58:39 +01:00
Björn Linse
ed08936987
api: allow open non-current buffer as terminal (+ xmas bonus)
...
vim.api.nvim_chan_send(vim.api.nvim_open_term(0), io.open("/path/to/smile.cat", "r"):read("*a"))
2021-03-12 14:44:47 +01:00
Corey Williamson
3fbd9ed4ab
api: clarify difference between win_hide and win_close
2021-03-10 13:29:01 -06:00
Björn Linse
425bc438ae
decorations: add additional styling of virt_text overlays
2021-03-10 12:11:05 +01:00
Corey Williamson
3a342f9cc9
api: add vim.api.nvim_win_hide
2021-03-09 22:51:56 -06:00
Björn Linse
b3dd856f2b
Merge pull request #14052 from phaazon/fix/typo
...
Fix a typo in the Lua documentation for nvim_add_highlight().
2021-03-06 13:21:44 +01:00
Lee Wannacott
d8dff33e4b
Added If true to show that {after} and {follow} parameters of nvim_put() are expecting boolean values
2021-03-07 00:54:13 +13:00
Dimitri Sabadie
d7008418b7
Fix a typo in the Lua documentation for nvim_create_namespace().
2021-03-04 13:48:13 +01:00
Björn Linse
4781333a7a
decorations: allow virt_text overlay at any column
2021-02-22 09:40:06 +01:00
Björn Linse
d623400cad
Merge pull request #13944 from chentau/on_bytes_doc
...
Doc: update documentation for on_bytes
2021-02-17 13:14:18 +01:00
chentau
d966e0142d
Doc: update documentation for on_bytes
2021-02-17 00:47:19 -08:00
Björn Linse
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
Björn Linse
94622ca66b
buffer updates: add on_reload callback and handle it in treesitter parser
2021-02-10 18:58:46 +01:00
Björn Linse
b2b47e4618
Merge pull request #13899 from chentau/set_text_fix
...
correctly mark changed regions for set_text
2021-02-08 19:08:43 +01:00
chentau
05605bfc05
correctly mark changed regions for set_text
2021-02-07 13:50:29 -08:00