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
Jan Edmund Lazo
5ccc79e880
eval: executable(), exepath() accept strings only
...
Cherry-pick f_executable(), f_exepath(), check_for_string() from patch 8.2.2117.
Rename check_for_string() to tv_check_for_string().
7bb4e74c38
Close https://github.com/neovim/neovim/issues/13485
2020-12-11 21:20:20 -05:00
Jan Edmund Lazo
062576f679
vim-patch:8.2.0047: cannot skip tests for specific MS-Windows platform ( #13461 )
...
Problem: Cannot skip tests for specific MS-Windows platform.
Solution: Add windowsversion().
0c1e3744ff
2020-12-11 19:45:22 -05:00
Edwin Pujols
f2ec058602
tests: Take into account magic hyphen. ( #13518 )
...
In Lua patterns the hyphen works like a non-greedy version of Vim's `*`.
- Use `%-` when you need a literal hyphen.
- If you don't need a regular expression at all, use something like
```
string.find(text, pattern, 1, true)
```
so that the pattern is regarded as a plain, non-magical string.
See [1] and [2] in the Lua manual.
[1]: https://www.lua.org/manual/5.1/manual.html#pdf-Patterns
[2]: https://www.lua.org/manual/5.1/manual.html#pdf-string.find
2020-12-11 18:54:39 -05:00
Björn Linse
52e660e857
Merge pull request #13482 from dm1try/propagate_lua_file_loading_errors
...
runtime: propagate lua parsing errors while using "require"
2020-12-10 12:15:40 +01:00
Thomas Vigouroux
99007bcc12
Merge pull request #13450 from nvim-treesitter/fix-unknown-language-parser
...
fix(treesitter): don't throw an error for missing injected langs
2020-12-10 11:12:39 +01:00
dm1try
3421485253
runtime: propagate lua parsing errors while using "require"
2020-12-10 10:53:28 +01:00
Thomas Vigouroux
5855a3ea7b
Merge pull request #13449 from nvim-treesitter/fix-language-for-range
...
fix(treesitter): incorrect method name call
2020-12-06 23:27:38 +01:00
shirasaka
9601e7c5d5
ui: Fix win_hide distination grid
...
When create tab, win_hide sent to new tab and new tab's previous tab.
So, if created tab that not next tab (eg. $tabnew cmd),
send win_hide to not current tab, and fixed this.
2020-12-05 20:18:51 +09:00
Steven Sojka
e15c5f58df
fix(treesitter): don't throw an error for missing injected langs
2020-12-04 16:56:29 -06:00
Steven Sojka
2985c17867
fix(treesitter): incorrect method name call
2020-12-04 16:15:47 -06:00
Björn Linse
6c344a75d4
Merge pull request #13173 from tjdevries/tjdevries/option_info
...
api: add option metadata
2020-12-04 13:45:32 +01:00
Björn Linse
17a58043a3
api/options: cleanup the fixup
2020-12-04 13:29:44 +01:00
TJ DeVries
ced951c2aa
api/options: fixup
2020-12-04 13:29:44 +01:00
Mathias Fußenegger
f5e0f17968
lsp: Change diagnosticg.get_all to return {bufnr: Diagnostic[]} ( #13310 )
...
Allows users to associate the diagnostics with the right bufnr.
2020-12-03 14:22:15 -05:00
eightpigs
fa73bb70fc
lsp: Fix "unsupported_method" error when the buffer does not have an LSP Server ( #13175 )
2020-12-03 01:00:54 -05:00