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
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