James McCoy
6a03bcc3c2
fix(test): Detect more core filenames
2021-04-08 08:13:39 -04:00
Marco Hinz
cd75d3289a
Merge pull request #14200 from teto/treesitter-checkhealth
...
feat: treesitter checkhealth
2021-04-07 16:40:56 +02:00
Thomas Vigouroux
e8bc3d717e
feat(ts): include parser ABI version in checkhealth
2021-04-06 19:02:58 +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
160c9fd126
Merge pull request #14199 from bfredl/chansend2
...
api: fix use-after-free in nvim_chan_send
2021-04-04 22:41:01 +02:00
Ghjuvan Lacambre
0f187700ab
vim-patch:8.2.0295: highlighting for :s wrong when using different separator ( #14286 )
...
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes vim/vim#5665 )
c036e87bd7
2021-04-04 14:43:22 -04: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
ce976bf355
Merge pull request #14278 from chentau/extmark_retab
...
extmark: buffer update fixes for `noexpandtab` and `:retab`
2021-04-04 09:42:34 +02:00
erw7
8e496b9dfd
Merge pull request #14268 from erw7/fix-p_ch-problem
...
screen: fix problem with p_ch
2021-04-04 12:04:36 +09:00
Björn Linse
2df527e1ff
test/lsp: disable tracking in LSP tests (here be dragons)
2021-04-03 16:27:58 +02:00
erw7
581b2bcde0
screen: fix problem with p_ch
...
When the screen is resized, p_ch is not re-set to the appropriate value.
As a result, access to invalid addresses was occurring.
2021-04-03 15:27:46 +09:00
shadmansaleh
f4224a12c0
Fix lualint warnings
2021-04-03 10:18:40 +06:00
shadmansaleh
7a6228d581
Add tests for nvim_set_hl()
2021-04-03 09:18:53 +06:00
chentau
7602c56050
extmark: fixes for noexpandtab and retab
2021-04-02 16:21:46 -07:00
Björn Linse
6db3ba9df2
Merge pull request #14027 from dylanarmstrong/fix/13955-empty-paste-in-term-segfault
...
fix: segfault when pasting in term with empty buffer
2021-04-02 23:15:43 +02:00
Steven Sojka
8bea39f372
feat(treesitter): allow injections to be configured through directives
2021-04-02 12:48:16 -05:00
Jan Edmund Lazo
7959aaf781
vim-patch:8.2.2686: status line is not updated when going to cmdline mode
...
Problem: Status line is not updated when going to cmdline mode.
Solution: Redraw status lines if 'statusline' is set and going to status
line mode. (based on patch from Justin M. Keyes et al.,
closes vim/vim#8044 )
ce0b75711a
2021-04-01 15:05:10 -04:00
Jan Edmund Lazo
a177820420
Merge pull request #14259 from janlazo/fix-dictwatcherdel-crash
...
Fix dictwatcherdel crash
2021-03-31 19:22:11 -04:00
TJ DeVries
d50f99f08b
fixup: remove unused test function
2021-03-31 18:09:03 +02:00
TJ DeVries
06c065469b
ts: Add per-language highlight links
2021-03-31 18:09:00 +02:00
Daniel Hahler
1c5e347b8c
more tests
2021-03-30 21:55:51 -04:00
Daniel Hahler
aca002e7d5
test
2021-03-30 21:55:51 -04:00
Daniel Hahler
4c76b1e981
Test and initial fix for crash with dictwatcherdel
...
Fixes https://github.com/neovim/neovim/issues/11188 .
2021-03-30 21:55:50 -04:00
TJ DeVries
d6209a7b84
fixup: Add a test and it is so pretty
2021-03-30 10:57:38 -04:00
Tony Chen
aa6adacd77
Make sure window is still valid in the middle of calling :lopen ( #14240 )
...
Make sure that oldwin is not invalid after splitting
Revisit this when porting vim patch v8.1.0892 and related quickfix patches.
2021-03-29 08:19:59 -04:00
Jan Edmund Lazo
63c2a7af2d
Merge pull request #13851 from VVKot/vim-8.1.0105
...
vim-patch:8.1.{0105,0114,0116,0126,0138,0154,0479,0542,0936}
2021-03-28 13:40:34 -04: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
VVKot
6752ac4968
vim-patch:8.1.0105: all tab stops are the same
...
Problem: All tab stops are the same.
Solution: Add the variable tabstop feature. (Christian Brabandt,
closes vim/vim#2711 )
04958cbaf2
2021-03-28 08:37:01 +01:00
Björn Linse
3000f6c56b
floats: handle interaction with popupmenu and border correctly
2021-03-25 09:06:09 +01:00
Björn Linse
1186f7dd96
Merge pull request #14191 from chentau/extmark_blockpaste
...
Extmarks: send correct buffer events on blockwise paste for nonuniform lines
2021-03-24 00:27:55 +01:00
chentau
7fbabbaa57
Extmarks: correct buffer events on blockwise paste
2021-03-23 14:06:57 -07:00
Björn Linse
ed20089877
Merge pull request #14194 from bfredl/provide_virt
...
memory error with ephemeral virt_text
2021-03-23 15:54:09 +01:00
Matthieu Coudron
a1a0bc618f
Merge pull request #14190 from teto/fix-cursorlinenr
...
fix CursorLineNr with diff
2021-03-23 14:01:57 +01:00
Björn Linse
06c191848b
decorations: memory error with ephemeral virt_text
2021-03-23 13:58:18 +01:00
Björn Linse
3e5efa50b6
Merge pull request #14193 from bfredl/msginit
...
screen: setup scrolling main screen when starting with display-=msgsep
2021-03-23 10:46:29 +01:00
Björn Linse
80e122ae5d
screen: setup scrolling main screen when starting with display-=msgsep
2021-03-23 09:34:36 +01:00
chentau
a92a8ef506
Correctly splice extmarks on tab with noexpandtab set
2021-03-22 20:26:25 -07:00
Matthieu Coudron
e0d0e46cf2
chore: add test for CursorLineNr with filler lines
2021-03-22 23:33:17 +01:00
Matthieu Coudron
f2e1709d49
fix: stop using CursorLineNr in front of fillers
...
filling lines in diff mode.
2021-03-22 23:33:17 +01:00
Björn Linse
243820ebd0
floats: add borders (MS-DOS MODE)
2021-03-22 23:18:40 +01:00
Jan Edmund Lazo
dc8da7ba40
Merge pull request #14060 from andymass/vim-8.2.1703
...
[RFC] vim-patch:8.2.{1693,1703,1705}
2021-03-20 18:08:16 -04:00
Andy K. Massimino
79575cfe8a
Fix a failing test (highlight_spec.lua)
2021-03-20 15:56:52 -04:00
Mathias Fussenegger
84213b5b9a
lsp: Add support for delete workspaceEdit resource operation
2021-03-18 19:53:43 +01:00
Mathias Fussenegger
191afb42be
lsp: Add support for create workspaceEdit resource operation
2021-03-18 19:53:42 +01:00
Mathias Fussenegger
5e401b693b
lsp: Add support for file rename via workspaceEdit
2021-03-18 19:53:14 +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
Jan Edmund Lazo
9e4c1fa073
vim-patch:8.2.2601: memory usage test often fails on FreeBSD
...
Problem: Memory usage test often fails on FreeBSD.
Solution: Increase multiplier for upper limit.
6bce5856b5
2021-03-14 11:54:36 -04:00
Björn Linse
3c8583e43b
Merge pull request #14020 from chentau/float_resize
...
Update lines after shrinking floating window
2021-03-14 08:35:48 +01:00
tk-shirasaka
314b222c25
Fix click on foldcolumn with vsplit ( #14127 )
2021-03-13 23:12:18 +01:00
Jan Edmund Lazo
a1cdb6ca6a
vim-patch:8.2.2595: setting 'winminheight' may cause 'lines' to change
...
Problem: Setting 'winminheight' may cause 'lines' to change.
Solution: Also take minimal height of other tabpages into account. (vim/vim#7899 )
9e813b3dea
2021-03-13 10:16:23 -05: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
chentau
8fe19d9d89
screen: make ui_compositor aware of the intended size of a float
2021-03-11 12:27:29 -08:00
Josa Gesell
d1074e0077
lsp: Resolve codeLense server capabilities ( #14056 )
2021-03-10 17:02:09 -05:00
Björn Linse
7844ca2e05
Merge pull request #14065 from bfredl/overlaymode
...
more virt_text display options
2021-03-10 13:28:07 +01:00
Björn Linse
425bc438ae
decorations: add additional styling of virt_text overlays
2021-03-10 12:11:05 +01:00
Michael Lingelbach
0869cbd55c
Merge pull request #14079 from mjlbach/incremental_sync
...
lsp: add incremental text synchronization
2021-03-09 21:03:31 -08:00
Corey Williamson
3a342f9cc9
api: add vim.api.nvim_win_hide
2021-03-09 22:51:56 -06:00
Michael Lingelbach
e4e51c69d7
lsp: add incremental text synchronization
...
* Implementation derived from and validated by vim-lsc authored by Nate
Bosch
2021-03-09 20:14:08 -08:00
Björn Linse
e355cc8cc5
Merge pull request #13875 from smolck/vim_fn_error_on_api
...
vim.fn: throw error when trying to use API function
2021-03-09 23:12:23 +01:00
smolck
d1899bb5f4
use pcall_err
2021-03-09 15:23:42 -06:00
Björn Linse
f901149de4
state: throttle batched event processing when input is available
...
before, calling vim.schedule() from inside an event would execute
the scheduled callback immediately after this event without
checking for user input in between. Break event processing
whenever user input or an interrupt is available.
2021-03-08 16:08:58 +01:00
tk-shirasaka
f2fc44d50b
[RDY] Fix click on foldcolumn if it has tabline ( #13982 )
...
* Fix click on foldcolumn if it has tabline
* Fixes to correctly determine if tablie was clicked when multigrid is enabled
* Separate foldcolumn checks into functions
* Add test case for click on foldcolumn with split window
* Fix foldcolumn click used nvim_input() on multigrid enabled
2021-03-04 13:54:22 +01:00
Björn Linse
6995fad260
Merge pull request #13973 from chentau/on_bytes_undofile
...
New versions of neovim will not read undofiles written by nvim before this merge (there will be an error message about incopmatible version). Nvim 0.4 (or an master up to bda12927be
) can be used to recover older undofiles, so if you worried about unsaved changes lurking around in undofiles it would make sense to keep such version around somewhere to recover them.
This is a necessary change to keep tree-sitter and plugins dependent on byte-level buffer change events fully working with undo states from a undofile. If there is a clear demand we might implement reading of the old format. Such recovered buffers will not be be fully functional with plugins relying on buffer updates or tree-sitter, however.
2021-03-03 09:45:06 +01:00
chentau
f42e932df4
Extmarks: Save extmark undo information to undofile.
2021-03-02 12:45:54 -08:00
Jan Edmund Lazo
f32acc70e8
vim-patch:8.2.2236: 'scroll' option can change when setting the statusline
...
Problem: 'scroll' option can change when setting the statusline or tabline
but the option context is not updated.
Solution: Update the script context when the scroll option is changed as a
side effect. (Christian Brabandt, closes vim/vim#7533 )
746670604a
2021-03-02 00:35:52 -05:00
Jan Edmund Lazo
e50875b3e3
vim-patch:8.2.2560: setting 'winminheigt' does not take tabline into account
...
Problem: Setting 'winminheigt' does not take tabline into account.
Solution: Subtract the tabline from the available height. (closes vim/vim#7899 )
39d4cab494
N/A patches for version.c:
vim-patch:8.1.0680: not easy to see what features are unavailable
Problem: Not easy to see what features are unavailable.
Solution: Highlight disabled features in the :version output. (Nazri Ramliy,
closes vim/vim#3756 )
c85ffc9dab
vim-patch:8.2.2196: :version output has extra spaces in compile and link command
Problem: :version output has extra spaces in compile and link command.
Solution: Adjust QUOTESED. (closes vim/vim#7505 )
abcbb0e9ad
vim-patch:8.2.2551: MS-Windows: colors test file is not installed
Problem: MS-Windows: colors test file is not installed.
Solution: Also copy runtime/colors/tools. (Ken Takata, closes vim/vim#7902 )
d0bce504ec
vim-patch:8.2.2559: MS-Windows: guifont test fails on Windows XP
Problem: MS-Windows: guifont test fails on Windows XP.
Solution: Check windowsversion().
3650fd7098
2021-03-01 23:40:39 -05:00
Dylan Armstrong
6646280d1a
chore: revert unrelated changes in test
2021-02-27 10:02:56 -06:00
Dylan Armstrong
1d4a7c6039
test: use assert_alive helper rather than eq
2021-02-27 09:38:38 -06:00
Dylan Armstrong
a9eeeec5d5
test: segfault test for empty buffer paste on term
2021-02-26 19:55:32 -06:00
Mathias Fussenegger
eff7666163
LSP: Resolve text_document_save capability according to spec
...
Fixes https://github.com/neovim/neovim/issues/13989
See https://github.com/microsoft/language-server-protocol/issues/288
2021-02-25 10:08:14 +01:00
Matthieu Coudron
9d5f842807
lsp: remove deprecated references to 'callbacks' ( #13945 )
...
vim.lsp.callbacks was deprecated a few months ago. This is a cleanup before the release.
Use vim.lsp.handlers instead.
2021-02-23 00:02:51 +01:00
Björn Linse
7bcac75f30
Merge pull request #13952 from bfredl/overlay
...
decorations: allow virt_text overlay at any column
2021-02-22 10:17:44 +01:00
Björn Linse
4781333a7a
decorations: allow virt_text overlay at any column
2021-02-22 09:40:06 +01:00
Mathias Fußenegger
1caf58578c
lsp: Fix text edits operating on the last line of a document ( #13677 )
...
`lines` can be empty, in which case `#lines[#lines]` failed with an
error:
lsp/util.lua:214: attempt to get length of a nil value
2021-02-19 22:20:42 -05:00
Michael Lingelbach
b2fcfc65b7
lsp: client stop cleanups ( #13877 )
...
* lsp: client stop cleanups
* Add diagnostic clearing to client.stop() method used by nvim-lspconfig
* Clear diagnostic cache to prevent stale diagnostics on client restart
* lsp: Add test for vim.lsp.diagnostic.reset
2021-02-19 22:05:49 -05:00
Vikram Pal
4d5dbea4f4
[RFC] ":source" sources from current buffer if filename is omitted ( #11444 )
...
Fix https://github.com/neovim/neovim/issues/8722
2021-02-18 01:25:51 -05: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
c7a65fe6a1
buffer_updates: autoload episode III: revenge of the trees
2021-02-14 11:10:36 +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
230f2ff381
Merge pull request #13903 from glacambre/fix_prompt_for_number
...
Clear prompt_for_number messages
2021-02-10 18:51:33 +01:00
glacambre
dbf3c5d953
Clear prompt_for_number messages
...
This fixes issues in GUIs:
https://github.com/akiyosi/goneovim/issues/94
https://github.com/glacambre/firenvim/issues/448
2021-02-10 13:04:02 +01:00
notomo
971e0ca903
fix(notify): Expected 3 arguments error ( #13905 )
2021-02-09 11:41:02 +01:00
Thomas Vigouroux
3094bb4e38
fix(buf_updates): send updates when putting past last line
...
Fixes #13710
2021-02-08 19:08:42 +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
Matthieu Coudron
00423730b5
Merge pull request #13843 from teto/notif_provider
...
[RDY] Notification provider
2021-02-08 15:49:27 +01:00
chentau
05605bfc05
correctly mark changed regions for set_text
2021-02-07 13:50:29 -08:00
smolck
ad1a437835
vim.fn: add test for error
2021-02-04 09:22:27 -06:00
Björn Linse
209fb35acd
tests: clean up lua/buffer_updates_spec.lua
2021-02-04 14:35:30 +01:00
Björn Linse
aa50369897
inccommand: preserve extmarks when undoing preview substitution
2021-02-04 14:33:37 +01:00
Matthieu Coudron
a90a43796a
test: test vim-notify
2021-02-02 15:40:08 +01:00
Michael Lingelbach
563d7b694b
tests: add test for cursor postion when deleting buffer lines
2021-01-31 12:43:48 -08:00
James McCoy
27a7a4d384
Use abort() instead of assert(false) for things that should never happen
...
assert() is compiled out for release builds, but we don't want to
continue running in these impossible situations.
This also resolves the "implicit fallthrough" warnings for the asserts
in switch cases.
2021-01-31 11:28:52 -05:00
James McCoy
db734ae994
test(job): Ensure job-specific env var overrides global env var
2021-01-31 07:54:21 -05:00
James McCoy
a199363be2
Pass environment on to pty processes on Windows
...
vim-patch:8.2.0239: MS-Windows: 'env' job option does not override existing vars
Problem: MS-Windows: 'env' job option does not override existing
environment variables. (Tim Pope)
Solution: Set the environment variables later. (Yasuhiro Matsumoto,
closes vim/vim#5485 , closes vim/vim#5608 )
355757aed6
Co-authored-by: erw7 <erw7.github@gmail.com>
2021-01-31 07:54:21 -05:00
James McCoy
7f50c69268
Use dict_T to pass env vars to process spawning code
...
Co-authored-by: Matthieu Coudron <mattator@gmail.com>
2021-01-31 07:54:20 -05:00
Mathias Fußenegger
459a6c845e
lsp/tests: Ensure client is stopped in basic_init tests ( #13798 )
2021-01-27 15:32:07 +01:00
chentau
f0ccac0ba4
lint
2021-01-26 17:09:35 -08:00
Tony Chen
d95a465b43
Don't show entire context when completing
2021-01-26 17:04:32 -08:00
TJ DeVries
901dd79f6a
feat: add completion to ':lua'
2021-01-26 17:04:31 -08:00
Matthieu Coudron
69103ff0cf
Merge pull request #13807 from spywhere/min-size-auto-sign
...
Auto sign column with minimum size support
2021-01-23 22:46:29 +01:00
Björn Linse
bdfd023f81
Merge pull request #13813 from notomo/fix-nvim-echo-clear
...
api(echo): should clear cmdline before echo
2021-01-22 09:59:02 +01:00
Björn Linse
b803bfa5aa
Merge pull request #13679 from chentau/gravity
...
Extmarks api: allow for gravity
2021-01-22 09:55:00 +01:00
notomo
d3989ea8e8
api(echo): should clear cmdline before echo
2021-01-21 21:49:42 +09:00
Sirisak Lueangsaksri
83ea08ddf3
opt: add tests ( #13783 )
2021-01-20 23:57:21 +07:00
notomo
8e86f5e460
api: nvim_echo
2021-01-20 16:41:39 +01:00
Thomas Vigouroux
d9c1586e4a
Merge pull request #13765 from jvgrootveld/ts-default-start-end-row-on-capture
...
treesitter: default start and end row when omitted
2021-01-20 10:32:48 +01:00
Mathias Fußenegger
3f63100d5b
LSP: Fix nil settings handling in workspace/configuration ( #13708 )
...
The `workspace/configuration` handler could fail with the following
error if `config.settings` is nil:
runtime/lua/vim/lsp/util.lua:1432: attempt to index local 'settings' (a nil value)"
This ensures that `config.settings` is always initialized to an empty
table.
2021-01-18 19:33:10 +01:00
Michael Lingelbach
abbfaf286f
logs: make kXDGCacheHome if it doesn't exist ( #13758 )
2021-01-16 21:14:59 +01:00
“jvgrootveld”
a2818819bb
treesitter: default start and end row when omitted
...
Add support for default start and end row when omitted in the
query:iter_captures and query:iter_matches functions.
When the start and end row values are omitted, the values of the given
node is used. The end row value is incremented by 1 to include the node end
row in the match.
Updated tests and docs accordingly.
2021-01-15 21:44:40 +01:00
Michael Lingelbach
ea8756f85d
logging: move to XDG_CACHE_HOME ( #13739 )
...
while there is some controversy, stdpath('cache') looks like a better fit for logs than stdpath('data'): you can remove logs without preventing nvim to work which fits the XDG_CACHE_HOME definition of `user specific non-essential data files`.
2021-01-13 23:20:21 +01:00
TJ DeVries
9f3b2a757b
lsp: Add severity_limit for other diagnostics features ( #13528 )
...
* lsp: Add severity_limit for other diagnostics
* docs and tests
* fix: lint
* Add to other types
* fix: lint
2021-01-12 12:58:50 -05:00
TJ DeVries
e0a4399adc
fix(lsp): Allow subsequent text document edits to pass ( #13534 )
...
* fix: Allow subsequent text document edits to pass
* fixup: cleaner code
* add tests
2021-01-11 11:39:11 -05:00
ffanzhang
0860d9c164
Use uv_os_homedir and current directory as backup when $HOME is not set ( #13657 )
...
Close https://github.com/neovim/neovim/issues/8614
Use uv_os_homedir and current directory as backup if HOME env is not set.
Allocate homedir only if var is not NULL.
2021-01-10 19:46:25 -05:00
Jan Edmund Lazo
5b897acfc1
test/old: restore test_backspace_opt.vim
...
Porting it to test/functional/legacy/backspace_opt_spec.lua
was a mistake.
Tests pass after commenting out some lines for Vi compatibility.
File is copied from Vim as of patch v8.2.0540.
Patch v8.2.0540 cannot be fully ported yet.
This file is a prequisite for future v8.2.x patches.
2021-01-05 09:47:38 -05:00
chentau
6127661024
forgot to update tests
2021-01-05 00:39:07 -08:00
Björn Linse
4cdc8b1efd
input: consider "-- more --" state to be blocking, fixes #11899
2021-01-04 09:41:25 +01:00
chentau
10b278bdae
allow for extmark gravity to be set through api
2021-01-03 13:59:24 -08:00
Thomas Vigouroux
fd960a33e4
fix: check for valid buffer handles in modify_keymap ( #13543 )
...
Fixes #13541
Neovim would crash when trying to map a key on non existant buffer
2021-01-03 19:14:18 +01:00
Björn Linse
a58d96a7ed
buffer updates: mark sorted region as changed.
...
NB: currently this invalidates all extmarks inside the region.
Later on within-line extmarks could be preserved
2021-01-03 14:47:37 +01:00
Björn Linse
adb01190c4
tests: make treesitter its own category
2021-01-03 14:47:29 +01:00
Matthieu Coudron
48caf1df85
Merge pull request #13649 from mjlbach/move_from_nvim-lspconfig
...
LSP: Move workspace/configuration from nvim-lspconfig to core
2021-01-01 23:52:48 +01:00
Jan Edmund Lazo
5eccfd2b2e
Merge pull request #13655 from janlazo/vim-8.2.2255
...
vim-patch:8.1.{1241,1261,1275,1281,1549,1590,1881,2079,2322,2360,2411},8.2.{113,388,934,2255,2258,2260,2269}
2021-01-01 17:40:26 -05:00
Jan Edmund Lazo
52bfaea70e
test/win: skip vargs memory usage on Github Actions
...
This test can fail on any of the Windows builds
because Github Actions does not provide enough stability
and enough memory for all runners..
Check test requirements before running any test cases
to avoid duplicate checks.
2021-01-01 17:13:43 -05:00
Björn Linse
dac3b35ece
Merge pull request #11833 from bfredl/set_text
...
nvim_buf_set_text
2021-01-01 20:21:09 +01:00
Björn Linse
90f619f140
Merge pull request #13592 from bfredl/setmouse
...
ui: make 'mouse' handling in external UI more consistent
2021-01-01 20:04:09 +01:00
Björn Linse
39d098f9f9
api: set_text: fix some byte count issues
...
add byte count tests
update documentation
2021-01-01 19:51:58 +01:00
chentau
f7d01a65d5
api: set_text: more tests, and fixing lint
...
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
2021-01-01 19:51:58 +01:00
Tony Chen
45b14f88db
api: set_text: rebase, update to new api, and add more tests
2021-01-01 19:51:45 +01:00
Blaž Hrastnik
29ad2ebc16
api: set_text: fix validation and some issues
...
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.
2021-01-01 19:51:37 +01:00
Björn Linse
6db86cb2d3
ui: make 'mouse' handling in external UI more consistent
...
before the behaviour of 'mouse' was inconsistent in external UI,
as some remapping logic would check has_mouse() and others don't
(no difference in TUI or vim classic). With this change, the behaviour
is consistently up to the UI decide (see ui.txt edit)
Behaviour of tui.c is unaffected by this change.
2021-01-01 15:47:44 +01:00
erw7
5cf94effee
test, legacy/assert_spec.lua: fix few tests fail
...
Adjust failing tests to current behavior due to changes in assert_fails
behavior by fbd6a86.
2021-01-01 04:58:05 -05:00
Michael Lingelbach
f3bbc92476
LSP: add test for workspace/configuration handler
2021-01-01 01:40:46 -08:00
erw7
a66d63f36e
test, provider/define_spec.lua: fix few tests fail
...
fbd6a86 changes the behavior of :command-range and no longer allows
arbitrary numbers. Adjust tests to reflect this behavior.
2021-01-01 04:30:55 -05:00
Jan Edmund Lazo
b01a60b1aa
Revert "vim-patch:8.1.0822: peeking and flushing output slows down execution"
...
This reverts commit 0519a75f6e
.
2020-12-31 16:44:53 -05:00
Jan Edmund Lazo
723e009214
Revert "vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc"
...
This reverts commit 44bb7147e4
.
Avoid regression mentioned in c64cce906e (commitcomment-45554271)
2020-12-31 16:44:53 -05:00
Matthieu Coudron
9c68aac37b
tests: check highlights work in open folds
...
to prevent a regression we just witnessed
2020-12-30 23:32:40 +01:00
Matthieu Coudron
b0215afc84
fix(fold): dont highlight search results on folded lines ( #13616 )
...
Behavior may change in future but for now stick to legacy behavior.
2020-12-29 01:19:24 +01:00
Jan Edmund Lazo
44bb7147e4
vim-patch:8.1.1192: mode is not cleared when leaving Insert mode with mapped Esc
...
Problem: Mode is not cleared when leaving Insert mode with mapped Esc.
Solution: Clear the mode when redraw_cmdline is set. (closes vim/vim#4269 )
4c25bd785a
2020-12-26 02:34:13 -05:00
Jan Edmund Lazo
0519a75f6e
vim-patch:8.1.0822: peeking and flushing output slows down execution
...
Problem: Peeking and flushing output slows down execution.
Solution: Do not update the mode message when global_busy is set. Do not
flush when only peeking for a character. (Ken Takata)
cb574f4154
2020-12-25 19:25:30 -05:00
Jan Edmund Lazo
8cf4a02bf2
vim-patch:8.1.2212: cannot see the selection type in :reg output
...
Problem: Cannot see the selection type in :reg output. (Ayberk Aydın)
Solution: Add c/l/b. (Christian Brabandt, closes vim/vim#5110 , closes vim/vim#4546 )
3691f1ee72
Patch v8.1.0999 is not ported so ":registers" does not omit register 1.
2020-12-25 10:17:00 -05:00
Lukas Reineke
88ae03bcdb
feat(sign):Allow signs to be 0 width ( #13290 )
...
Adds support for signs to be 0 cells wide. If all signs of the same
group have no width, the signcolumn will not be rendered for that group.
2020-12-24 17:33:52 +01:00
Björn Linse
95352f490a
rpc: don't handle stale requests on already closed channel
2020-12-23 23:58:56 +01:00
Jan Edmund Lazo
b1711e6f92
foldcolumn: support "auto" ( #13571 )
...
"set foldcolumn=auto" is documented but not supported.
Support it by making it behave as "auto:1", similar to "signcolumn".
Close https://github.com/neovim/neovim/pull/13561
2020-12-20 15:20:42 -05:00
Björn Linse
2debabb080
Merge pull request #13355 from notomo/check-textlock-in-api
...
api: add textlock check
2020-12-16 15:40:21 +01:00
Björn Linse
5e202f69b3
Merge pull request #13367 from nvim-treesitter/offset-lang-injection
...
feat(treesitter): add offset predicate for language injection
2020-12-16 13:59:36 +01:00
notomo
30ef8c693c
test: textlock api error
2020-12-16 21:57:24 +09:00
Thomas Vigouroux
25e20da550
feat(buffer_updates): allow ignoring when previewing
...
Also adds a test that we actually subscribe to buffer events when in
CMDPREVIEW.
2020-12-15 22:29:27 +01:00
Steven Sojka
929f194145
feat(treesitter): add offset predicate for language injection
...
refactor(treesitter): add directives to queries
2020-12-15 07:03:47 -06:00
Jan Edmund Lazo
da58242fb8
test/functional/eval: assert that executable() fixtures are executable
2020-12-11 22:59:43 -05:00