Ashkan Kiani
42c53d266a
Merge remote-tracking branch 'origin/master' into lsp-followup
2019-11-23 14:28:54 -08: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
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
Ashkan Kiani
6a51401378
Merge remote-tracking branch 'origin/master' into lsp-followup
2019-11-21 10:04:32 -08: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
Joe Hermaszewski
1ff5b60cb9
vim-patch:8.1.0251: support full paths for 'backupdir' #11269
...
Problem: Using a full path is supported for 'directory' but not for
'backupdir'. (Mikolaj Machowski)
Solution: Support 'backupdir' as well. (Christian Brabandt, closes vim/vim#179 )
b782ba475a
2019-11-17 23:38:27 -08:00
Justin M. Keyes
af53a0c012
doc: Lua [ci skip] #11378
...
- Rework :help lua-commands
- Rename if_lua.txt => lua.txt
2019-11-17 19:06:59 -08:00
Marco Hinz
97f1222005
provider/python: add python3.8 executable ( #11402 )
...
Python 3.8 was released 2019-10-14:
https://www.python.org/dev/peps/pep-0569
2019-11-17 14:23:17 +01:00
Justin M. Keyes
a45890e82e
Merge #11406 from janlazo/vim-8.1.1922
...
vim-patch:8.1.{1922,2289,2305}
2019-11-16 18:43:03 -08:00
Nikolay Shebanov
7116a41e30
tutor: change arrows (--->) to symbols ✗ and ✓ #11404
...
* Display ✓ or ✗ based on the line user sees
* Add vim-tutor-mode expectations to the lines marked with an arrow.
* Fix some existing expectations to behave predictably.
2019-11-16 15:35:32 -08:00
Jan Edmund Lazo
b83027858a
vim-patch:8.1.2289: after :diffsplit closing the window does not disable diff
...
Problem: After :diffsplit closing the window does not disable diff.
Solution: Add "closeoff" to 'diffopt' and add it to the default.
c823477979
2019-11-16 16:40:25 -05:00
Björn Linse
dab40f43b1
Add v:lua.func() vimL syntax for calling lua
...
Also simplify error messages when calling lua from vimL.
2019-11-16 22:33:21 +01:00
Jan Edmund Lazo
6989ac05f4
vim-patch:8.1.0927: USE_CR is never defined
...
Problem: USE_CR is never defined.
Solution: Remove usage of USE_CR. (Ken Takata, closes vim/vim#3958 )
0059074008
2019-11-13 19:25:39 -05:00
Rob Pilling
807e4039cb
Sort man pages by relevance during goto_tag()
2019-11-13 22:00:11 +00:00
Rob Pilling
18c5f6ab9f
Don't attempt swapfiles for man pages
...
This is because we now use :tag to open a man page, which attempts
to open a swap file for a path under man://...
2019-11-13 21:57:17 +00:00
Rob Pilling
aeee41192b
Remove eventignore - :Man now uses :tag to populate the page
2019-11-13 21:56:28 +00:00
Ashkan Kiani
00dc12c5d8
lua LSP client: initial implementation ( #11336 )
...
Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates.
Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions.
2019-11-13 21:55:26 +01:00
Justin M. Keyes
54473e9a67
doc [ci skip]
2019-11-11 22:12:59 -08:00
Justin M. Keyes
0190de9aab
Merge #11307 'Lua: vim.validate()'
2019-11-11 21:25:16 -08:00
Björn Linse
18a8b702c0
extmark: review changes
2019-11-11 20:18:15 +01:00
timeyyy
a9065a5051
nsmarks: initial commit
2019-11-11 19:43:15 +01:00
Justin M. Keyes
a0d992785f
Lua: Use vim.validate() instead of assert()
2019-11-10 23:43:49 -08:00
Justin M. Keyes
7aa4042d3b
Lua: vim.validate()
2019-11-10 23:43:49 -08:00