Björn Linse
7d5988feee
tests: remove irrelevant timing info
2019-11-23 21:26:16 +01:00
Björn Linse
ddf509c2ba
test was wrong
2019-11-23 16:46:47 +01:00
Björn Linse
2cc83c961c
refactor: use inserted_bytes pattern from vim
...
This covers all "small" inserts and deletes in insert mode, as well
as a few more cases like small normal mode deletes
vim-patch:8.1.0678: text properties as not adjusted for inserted text
2019-11-23 16:46:47 +01:00
Björn Linse
bdebe8516c
bufhl: use extmark column adjustment for bufhl
...
NB: this is not the final implementation. Bufhl should be made a
part of the extmark tree, so that "start" adjustment just works
automatically. But "stop" will still need some ad-hoc trickery,
until extended marks natively support ranges (hopefully sooner than
forever).
2019-11-23 14:50:31 +01:00
Jan Edmund Lazo
7639ccdd0d
vim-patch:8.1.1951: mouse double click test is a bit flaky
...
Problem: Mouse double click test is a bit flaky.
Solution: Add to list of flaky tests. Update a couple of comments.
f1699968ba
2019-11-22 23:43:01 -05:00
Jan Edmund Lazo
cb107d28a0
vim-patch:8.1.2330: vi' does not always work when 'selection' is exclusive
...
Problem: vi' does not always work when 'selection' is exclusive.
Solution: Adjust start position.
94d9f4fa65
2019-11-22 20:10:12 -05:00
Jan Edmund Lazo
3d7d52ee8b
vim-patch:8.1.2329: mouse multiple click test is a bit flaky
...
Problem: Mouse multiple click test is a bit flaky.
Solution: Add it to the list of flaky tests.
44f0bd878a
2019-11-22 20:10:12 -05:00
Jan Edmund Lazo
273ab19452
vim-patch:8.1.2183: running a test is a bit verbose
...
Problem: Running a test is a bit verbose.
Solution: Silence some messages. (Daniel Hahler, closes vim/vim#5070 )
ba089307bb
2019-11-22 20:10:12 -05:00
Jan Edmund Lazo
a6714cf35c
vim-patch:8.1.1490: when a single test fails the exit code is not set
...
Problem: When a single test fails the exit code is not set. (Daniel Hahler)
Solution: Add an exit command. (closes vim/vim#4506 )
4e0bf84627
2019-11-22 20:10:12 -05:00
Jan Edmund Lazo
8969efca8c
vim-patch:8.1.0723: cannot easily run specific test when in src/testdir
...
Problem: Cannot run specific test when in src/testdir the same was as in
the src directory.
Solution: Move build rule to src/testdir/Makefile.
ec50401e1e
Developer can omit '.res' suffix now.
TEST_FILE=test_syntax make oldtest
or
make -C src/nvim/testdir test_syntax
2019-11-22 20:10:12 -05:00
Jan Edmund Lazo
970329ff8d
vim-patch:8.1.2269: tags file with very long line stops using binary search
...
Problem: Tags file with very long line stops using binary search.
Solution: Reallocate the buffer if needed.
dc9ef26845
2019-11-22 20:10:11 -05:00
Jan Edmund Lazo
0f29deec80
vim-patch:8.1.1235: compiler warnings for using STRLEN() value
...
Problem: Compiler warnings for using STRLEN() value.
Solution: Cast to int. (Christian Brabandt, Mike Williams)
c0af78fa08
2019-11-22 20:10:11 -05:00
Dennis B
d5f14b8372
Clear 'cc' in nvim_open_win 'minimal' style #11361 ( #11427 )
...
* Clear 'cc' in nvim_open_win 'minimal' style #11361
Add 'colorcolumn' to the list of options that should be cleared when creating
a 'minimal'-style floating window.
2019-11-22 10:55:04 +01:00
Ashkan Kiani
73487f4130
Improve the character_offset code.
2019-11-22 00:31:10 -08:00
Ashkan Kiani
78991ffbf4
Improve performance of util.set_lines + bugfix
...
Also permit character_offset for col past the end of line (useful in
range formatting).
2019-11-22 00:02:04 -08:00
Ashkan Kiani
a3d67dac5f
Fix encoding translation in other places.
2019-11-21 16:23:12 -08:00
Ashkan Kiani
c055ca00ce
Remove comments.
2019-11-21 15:55:45 -08:00
Ashkan Kiani
43d73ee884
Fix position params for encoding.
2019-11-21 15:41:32 -08:00
Ashkan Kiani
da07e71b18
Account for character length in jump position.
2019-11-21 15:34:28 -08:00
Ashkan Kiani
b4ca07896c
lualint
2019-11-21 15:23:43 -08:00
Ashkan Kiani
b27965538d
Fix hovers staying on bufhidden
2019-11-21 15:20:32 -08:00
Ashkan Kiani
bcae04f6c6
Updates
...
- Use correct implementation of text_edits.
- Send indent options to rangeFormatting and formatting.
- Remove references to vim bindings and filetype from lsp.txt
- Add more examples to docs.
- Add before_init to allow changing initialize_params.
2019-11-21 15:19:06 -08:00
Chuck
b5f99a8d73
Fix terminal close error message formatting
2019-11-21 14:56:36 -08:00
Ashkan Kiani
6a51401378
Merge remote-tracking branch 'origin/master' into lsp-followup
2019-11-21 10:04:32 -08:00
Björn Linse
cc5487e32f
Merge pull request #11433 from bfredl/lspeol
...
lsp: transmit "\n" after last line when 'eol' is set
2019-11-21 12:45:52 +01:00
Björn Linse
76e0a8bd93
lsp: transmit "\n" after last line when 'eol' is set
...
Otherwise some servers like clangd will emit spurious
"no newline at end of file" warnings.
2019-11-21 11:12:57 +01:00
Ashkan Kiani
b7170f2d72
Remove resolve_bufnr/lualint
2019-11-20 20:59:52 -08:00
Ashkan Kiani
7bf766ad09
Use the apply_text_edits from util.
2019-11-20 20:59:12 -08:00
Ashkan Kiani
6d9f48ddcf
Fix reference in rename.
2019-11-20 20:57:21 -08:00
Ashkan Kiani
6fc409d593
Add full text_edit implementation.
...
- Implements textDocument/formatting, textDocument/rangeFormatting,
workspace/applyEdit.
TODO:
- still has edge cases around replacement probably. Only tested with
inserts on the same position.
2019-11-20 20:51:44 -08:00
Ashkan Kiani
b984f613c1
Extend list_extend to take start/finish.
2019-11-20 17:09:21 -08:00
Ashkan Kiani
9b7f956715
Use err_message in default_callbacks
2019-11-20 16:39:45 -08:00
Ashkan Kiani
4c7ef3754a
Satisfy lualint.
2019-11-20 16:37:23 -08:00
Ashkan Kiani
93beae4f31
Fix rename support.
2019-11-20 16:35:11 -08:00
Ashkan Kiani
1e16b3cf28
Spaces not tabs.
2019-11-20 16:16:36 -08:00
Ashkan Kiani
c40f8600d2
Change error writer to not be annoying.
2019-11-20 16:16:13 -08:00
Ashkan Kiani
03eb88848c
Change callback resolution to be dynamic.
...
This allows default_callbacks to be specified after client creation to
be considered. Also it simplifies the code.
2019-11-20 16:09:03 -08:00
Ashkan Kiani
a4b7004f48
Move everything to buf & default_callbacks
...
- Rename builtin_callbacks to default_callbacks and slightly change its
semantics:
- No longer contains the default implementations. Instead, any
default_callbacks will be used in preference for our .buf methods.
- Add this to the docs.
2019-11-20 16:03:32 -08:00
Ashkan Kiani
2d580756ca
Add everything to lsp.buf and get rid of autoload.
2019-11-20 15:35:18 -08:00
Ashkan Kiani
c83380cf80
Add lsp.buf and hover implementation.
2019-11-20 14:21:57 -08:00
Ashkan Kiani
ff65cc990a
Bugfix. Don't use nvim.lua that doesn't exist :)
2019-11-20 11:41:45 -08:00
Ashkan Kiani
568b454088
Add vim.uri_to_bufnr
2019-11-20 11:39:54 -08:00
Ashkan Kiani
0904ffe387
Bugfixes.
...
- Return after an error in RPC.
- Use an empty vim table for serialization.
2019-11-20 11:36:50 -08:00
Ashkan Kiani
3ae9b3781e
Bugfix for floating_preview
...
Don't modify your inputs.
2019-11-20 11:34:10 -08:00
Ashkan Kiani
69a0712a9c
Reduce code blocks in markdown previews.
...
If the preview is just a code block, then use the language as the
filetype instead of using markdown.
This reduces the size of the preview.
2019-11-20 11:23:50 -08:00
Justin M. Keyes
525bb1b55d
Merge #11280 "man.vim: implement 'tagfunc'"
2019-11-20 00:31:22 -08:00
Justin M. Keyes
182d3cebcf
Merge #11426 from janlazo/vim-8.0.1449
...
vim-patch:8.0.{1449,1793}
2019-11-19 21:32:48 -08:00
Jan Edmund Lazo
756e2b5f65
vim-patch:8.0.1793: no test for "vim -g"
...
Problem: No test for "vim -g".
Solution: Add a test for "-g" and "-y".
248be5c5de
2019-11-19 21:36:28 -05:00
Jan Edmund Lazo
025399aedb
vim-patch:8.0.1449: slow redrawing with DirectX
...
Problem: Slow redrawing with DirectX.
Solution: Avoid calling gui_mch_flush() unnecessarily, especially when
updating the cursor. (Ken Takata, closes vim/vim#2560 )
a338adcf22
2019-11-19 20:33:09 -05:00
Daniel Hahler
629ea19994
deps: upgrade bundled LuaRocks: 2.4.4 => 3.2.1 ( #10292 )
...
Changelog: https://github.com/luarocks/luarocks/compare/v2.4.4..v3.2.1#diff-4ac32a78649ca5bdd8e0ba38b7006a1e
2019-11-19 19:10:30 +01:00