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
Jan Edmund Lazo
d80f262f89
Merge pull request #13428 from janlazo/nvim-8.0.1525
...
vim-patch:8.0.{858,953,1525}
2020-12-01 19:02:38 -05:00
Björn Linse
72c22862dc
Merge pull request #12235 from dm1try/add_init_lua
...
add init.lua as an alternative user config
2020-12-01 18:54:50 +01:00
Jan Edmund Lazo
518fe0e8a2
test/wildmode_spec: override $PS1
...
User config may set $PS1 for a colored prompt.
It breaks the screen tests.
2020-12-01 08:52:34 -05:00
Jan Edmund Lazo
4b74996dbc
test/timer_spec: increase base timeout
...
The following keeps happening in my local environment
because the timeout is too short.
[ FAILED ] test/functional/eval/timer_spec.lua @ 208: timers do not crash when processing events in the handler
test/functional/eval/timer_spec.lua:219: retry() attempts: 1
test/helpers.lua:73: Expected objects to be the same.
Passed in:
(number) 0
Expected:
(number) 1
2020-12-01 08:52:34 -05:00
Jan Edmund Lazo
56f5e3bd6b
vim-patch:8.0.1525: using :wqa exits even if a job runs in a terminal window
...
Problem: Using :wqa exits even if a job runs in a terminal window. (Jason
Felice)
Solution: Check if a terminal has a running job. (closes vim/vim#2654 )
7a76092a51
2020-12-01 08:52:33 -05:00
dm1try
33f324796c
startup: allow lua files as session one
2020-12-01 10:51:31 +01:00
dm1try
767cd8b17b
startup: add init.lua as an alternative user config, fixes #7895
2020-12-01 10:51:25 +01:00
dm1try
13b8857300
path: add helper for checking a file extension
2020-12-01 10:50:38 +01:00
Björn Linse
bed9839f46
ex_getln: add secret charm
...
Opt in to this secret world using
set wildchar=0
" already the default, but remove if non-zero existing config:
set wildcharm=0
now you can map 'wildmode' just like any mode:
cnoremap <tab> <c-z>
function! Spacey()
return getcmdline()[-1:] == "/" ? "\<bs>" : ""
endfunc
cnoremap <expr> / wildmenumode() ? Spacey()."/<c-z>" : "/"
Possibly asked questions:
What about backwards compatibility?
====
Just do nothing and your existing 'wildchar' and 'wildcharm' will keep working.
Doesn't `<c-z>` mean suspend?
====
Not in cmdline mode. If it would then the recommended wildcharm would not
have been `<c-z>` to start with.
My config relies on `:<c-z>` being a synonym to `:<nop>`!
====
just no.
2020-12-01 00:57:52 +01:00
Matthieu Coudron
15e616a057
folds: use Folded highlight even with spell on ( #13393 )
...
the highlight was not used with spell enabled on folded lines.
Thanks to lervag for the nice report.
2020-11-29 14:26:59 +01:00
shade-of-noon
2d5dd85eef
screen.c: Allow showbreak to override cursorline. ( #13372 )
...
I also added relevant tests.
Close #13369
2020-11-25 16:47:03 +01:00
Björn Linse
ca7fa2a43a
Merge pull request #13357 from vigoux/luahl-priority
...
feat(luahl): add priority mechanism
2020-11-25 12:43:08 +01:00
Thomas Vigouroux
c0a6989d93
feat(luahl): add priority mechanism
...
Base priority is 0x1000, in order to stay kinda backward compatible.
Also set tree-sitter default highlight to 100 (middle-ish value)
2020-11-25 10:10:05 +01:00
Björn Linse
a6bd52d877
Merge pull request #13366 from bfredl/path3a
...
api: enable nvim_get_runtime_file to find subdirectories
2020-11-24 16:47:48 +01:00
Björn Linse
d285fa73da
api: enable nvim_get_runtime_file to find subdirectories
2020-11-24 14:18:46 +01:00
Thomas Vigouroux
dd876a1548
Merge pull request #13322 from teto/remove_curwin
...
refactor: pass window to was_set_insecurely
2020-11-24 07:10:55 +01:00
Matthieu Coudron
7eb0c16dc8
fix(fold): use Folded highlight even with spell on
...
Partially addresses https://github.com/neovim/neovim/issues/12982 . It's
more a quickfix while reworking folds.
2020-11-23 21:06:56 +01:00