Mathias Fussenegger
f03a4d616b
feat(lsp): Split out a diagnostics_to_items
function from set_loclist
...
Makes it easier to re-use the logic to populate the quickfix list
instead of the location list.
2021-06-07 18:24:32 +02:00
marvim
0819e1acf9
docs: regenerate
2021-06-06 10:23:07 +00:00
Michael Lingelbach
4ce61742cf
Merge pull request #14726 from folke/lsp_single_popup_per_buffer
...
fix(lsp): max 1 floating preview per buffer. Fixes #11508
2021-06-06 03:22:10 -07:00
Viktor Kojouharov
36d05845f7
feat(lsp): extend diagnostic.set_loclist
...
add option to show workspace diagnostic instead of the current buffer's
2021-06-06 09:59:46 +02:00
Michael Lingelbach
5902bed406
docs(lsp): fix locations_to_items docstring
2021-06-05 17:22:47 -07:00
Michael Lingelbach
36802b895f
Merge pull request #14730 from mjlbach/feature/open_loclist_on_win
...
fix(lsp): set_loclist should target current win
2021-06-05 17:12:55 -07:00
Michael Lingelbach
f214c19e2b
Merge pull request #14707 from ray-x/master
...
fix(lsp): floating window border size for string type
2021-06-05 15:00:07 -07:00
Michael Lingelbach
15abde1676
fix(lsp): set_loclist should target current win
...
Currently, for large number of diagnostics, the delay in populating
loclist may be sufficient for a user to switch to another window,
resulting in the loclist being populated on the wrong window.
2021-06-05 14:46:10 -07:00
Michael Lingelbach
d846bd7e06
feat(lsp): remove line from diagnostic quickfix
...
Adding the line takes up valuable horizontal screen space, and also
precludes using the quickfixtextfunc built into neovim due to the
harcoded `|`.
2021-06-05 13:39:30 -07:00
Folke Lemaitre
149efa9b2b
fix(lsp): max 1 floating preview per buffer. Fixes #11508
2021-06-05 10:13:01 +02:00
ray-x
351050a10f
fix(lsp): floating window border size for string type 'none' and 'shadow'
2021-06-02 20:44:13 +10:00
marvim
2ebc28018e
docs: regenerate
2021-06-02 00:43:13 +00:00
Jose Alvarez
d4caafacc1
fix(lsp): check mode in omnifunc callback
2021-06-01 22:13:21 +09:00
Michael Lingelbach
b10cda83fa
Merge pull request #14693 from shadmansaleh/enhance/lsp/make_focusable_parameter_configurable
...
feat(lsp): Make focusability of lsp float configurable
2021-06-01 04:32:59 -07:00
shadmansaleh
68d48e25b6
docs(lsp): Fix opts param not captured by docgen
...
In the documentation for `vim.lsp.util.open_floating_preview`
the opts table keys were prefixed with `--` instead of `---`,
preventing capture by docgen.
2021-06-01 17:29:06 +06:00
shadmansaleh
0bd34cb4ec
feat(lsp): Make focusability of lsp float configurable
...
This pr allows the user to specify whether `lsp.utils.open_floating_preview`
is focusable via the `opts` parameter. Defaults to true.
It can be configured by setting the focusable key inside opts parameter:
```lua
vim.lsp.util.open_floating_preview(contents, syntax, {focusable = false})
```
2021-06-01 17:23:35 +06:00
Michael Lingelbach
64bdaef327
Merge pull request #14694 from folke/lsp_popup_border
2021-06-01 01:52:38 -07:00
Folke Lemaitre
0ece34cbb8
fix(lsp): properly handle border character list without highlight groups. Fixes #14691
2021-06-01 09:36:29 +02:00
Jan Edmund Lazo
e399731561
vim-patch:8.2.2914: cannot paste a block without adding padding
...
Problem: Cannot paste a block without adding padding.
Solution: Add "zp" and "zP" which paste without adding padding. (Christian
Brabandt, closes vim/vim#8289 )
2fa9384ca1
Cherry-pick Test_normal_z_error() from patch v8.2.0369.
2021-05-31 21:06:11 -04:00
Michael Lingelbach
638c29b7c9
fix(docs): delete duplicate tags
2021-05-31 11:51:02 -07:00
Michael Lingelbach
0866df4d6a
Merge pull request #14687 from kabouzeid/vim-docs
...
Updated vim docs
2021-05-31 11:27:58 -07:00
Michael Lingelbach
96dfa07642
Merge pull request #14635 from folke/lsp_get_lines
...
perf(lsp): get all lines from a file in one go (`locations_to_items`)
2021-05-31 11:12:23 -07:00
Karim Abou Zeid
07f81b3b05
docs: regenerate
2021-05-31 19:47:51 +02:00
Amirreza Askarpour
3cd688ff77
fix vim.opt:remove doc ( #14664 )
2021-05-30 00:09:30 -04:00
Michael Lingelbach
cabf8ab26b
Merge pull request #14649 from folke/lsp_float_refactor
...
refactor(lsp): consolidate the different floating window methods into `open_floating_preview`
2021-05-29 12:06:58 -07:00
Folke Lemaitre
64da499ac2
refactor(lsp): consolidate the different floating window methods into open_floating_preview
2021-05-29 13:42:15 +02:00
TJ DeVries
43956dea55
lua: Add vim.opt and fix scopes of vim.o ( #13479 )
...
* lua: Add vim.opt
* fixup: cleaning
* fixup: comments
* ty clason
* fixup: comments
* this is the last commit. period.
2021-05-28 17:24:48 +02:00
Pino Toscano
192ea01edd
cmake: install app icon in XDG hicolor icon theme ( #14656 )
...
Install the icon of the application in the hicolor XDG icon theme;
this way it can be properly loaded by XDG menus in the currently set
XDG icon theme, without looking in the legacy pixmaps location.
2021-05-27 22:37:24 +02:00
Mathias Fussenegger
e06a73900f
lsp: Ensure floating markdown buffers are deleted on hide
...
After the change to use fancy_floating_markdown for the signature help I
noticed that scratch buffers start to accumulate.
2021-05-26 19:27:04 +02:00
Jan Edmund Lazo
31ea80649d
vim-patch:3ec3217f0491
...
Update runtime files
3ec3217f04
Omit fuzzy-match in pattern.txt.
2021-05-25 22:11:04 -04:00
Folke Lemaitre
54c441c80b
perf(lsp): get all lines from a file in one go
2021-05-25 12:23:39 +02:00
Jan Edmund Lazo
0a653f7ab9
vim-patch:8.2.2879: file extension .hsig not recognized ( #14628 )
...
Problem: File extension .hsig not recognized.
Solution: Use Haskell filetype for .hsig files. (Marcin Szamotulski,
closes vim/vim#8236 )
f5409dbf66
2021-05-23 17:15:38 -04:00
Mathias Fussenegger
5d4717010c
lsp: Only mute RequestCancelled or ContentModified, but not other errors
...
handlers passed to `lsp_buf_request` weren't called if the server
responded with an error that looks like this:
"decoded", {
error = {
code = -32601,
message = "No delegateCommandHandler for foo"
},
id = 5,
jsonrpc = "2.0"
}
An example where that happens is both eclipse.jdt.ls and the
haskell-language-server when invoking a command that doesn't exist:
:lua vim.lsp.buf_request(
0,
'workspace/executeCommand',
{ command = 'foo' },
function(err, _, res)
print(vim.inspect(err), vim.inspect(res))
end
)
2021-05-23 17:04:19 +02:00
Jan Edmund Lazo
59d550345d
vim-patch:8.2.2778: problem restoring 'packpath' in session
...
Problem: Problem restoring 'packpath' in session.
Solution: Let "skiprtp" also apply to 'packpath'.
d23b714d8b
Port Test_mksession_skiprtp() to lua functional test.
2021-05-22 17:32:24 -04:00
Jan Edmund Lazo
8415615b59
vim-patch:8.2.2772: problems when restoring 'runtimepath' from a session file
...
Problem: Problems when restoring 'runtimepath' from a session file.
Solution: Add the "skiprtp" item in 'sessionoptions'.
635bd60804
Allow "terminal" value for sessionoptions even if it's no-opt
because patch v8.0.1592 is not ported yet.
Omit vim9 test, Test_mksession_skiprtp().
2021-05-22 15:40:06 -04:00
Michael Lingelbach
0cbe748da3
Merge pull request #14615 from folke/faster_locations_to_items
...
perf(lsp): `locations_to_items`: use libuv for unloaded buffers to get line
2021-05-22 10:58:45 -07:00
Folke Lemaitre
c98e4d1a2a
perf(lsp): locations_to_items use libuv for unloaded buffers to get line
2021-05-22 18:56:48 +02:00
Michael Lingelbach
5b2be75256
Merge pull request #14269 from fdschmidt93/fix/document_symbol_range
...
fix(lsp): prefer selectionRange over range for document symbols in vim.lsp.util.symbols_to_items
2021-05-22 09:18:03 -07:00
Michael Lingelbach
9c7ad33006
Merge pull request #14603 from folke/format_on_save
...
fix(lsp): allow apply_text_edits to append text (insert at last line)
2021-05-22 09:13:06 -07:00
Thiago Mota Martins
6dd04ed5f6
doc/options: Removed vim-only text from ambiwidth. ( #14602 )
...
NeoVim always includes all features and doesn´t have termcap-options (t_u7).
2021-05-21 19:59:48 -04:00
Michael Lingelbach
efe33fc799
Merge pull request #14604 from folke/master
...
feat(lsp): use same formatting for `signature_help` as `hover`
2021-05-21 11:17:17 -07:00
Folke Lemaitre
bfdd750fce
feat(lsp): use fancy_floating_markdown for signature_help
2021-05-21 19:55:30 +02:00
Folke Lemaitre
02390af5a6
fix(lsp): clear current_syntax before formatting fancy markdown region
2021-05-21 19:18:22 +02:00
Folke Lemaitre
262645b325
fix(lsp): preview_location options and syntax fallback
2021-05-21 19:16:50 +02:00
Folke Lemaitre
d09f53d8ec
fix(lsp): allow apply_text_edits and set_lines to insert text after the last line. Fixes #14017
2021-05-21 09:06:00 +02:00
Michael Lingelbach
75992f2ad9
Merge pull request #14596 from folke/master
...
lsp: `lsp.util.fancy_floating_markdown` improvements
2021-05-20 23:41:34 -07:00
Thiago Mota Martins
de96626ad4
Fixed ttimeout documentation. ( #14600 )
...
ttimeout is a boolean. The correct command for this line is ":set ttimeoutlen=9999"
2021-05-20 18:39:41 -04:00
Folke Lemaitre
07f54201c7
feat(lsp): lsp.util.fancy_floating_markdown improvements
...
fix: fancy_floating_markdown: syn region must include keepend to make sure syntax regions are applied correctly. Fixes #14594
feat: fancy_floating_markdown: handle <pre></pre> code blocks as a markdown code block with plaintext
fix: possible nil check for markdown code blocks till end of buffer
refactor: only one check is needed to see if stripped[h.finish +1] is valid
fix(lsp): dont't set doc ownsyntax, since it breaks contained syntaxes. Set regions for the markdown blocks intsead
fix: apply markdown formatting for code blocks without a language
fix: use markdownCodeBlock when no language was set in a code block
2021-05-21 00:34:30 +02:00
kevinhwang91
d29148ffd8
Merge remote-tracking branch 'origin/master' into qftf
2021-05-20 21:15:31 +08:00
Michael Lingelbach
045e47ec55
Merge pull request #14563 from mjlbach/fix_intelephense_langserver
...
lsp: handle case where CompletionItem.insertTextFormat is nil
2021-05-19 12:39:44 -07:00
Marco Hinz
6deae3d14b
fix(health/python3): remove obsolete check ( #14590 )
...
Python 3.3 reached its end-of-life 2017-09-29:
https://www.python.org/dev/peps/pep-0398
Closes https://github.com/neovim/neovim/issues/14586
2021-05-19 19:26:15 +02:00
Marco Hinz
f6a86a3d7d
Merge pull request #14589 from mhinz/revert-smarter-tagstack
...
Unfortunately, there are some subtle bugs in the smarter tagstack changes,
so we'll revert them for now and try to come up with a better approach.
One of the added tests, adds current position to jumplist before jumping,
is valuable though and changed to still work after reverting the other two
commits.
Closes #14571
2021-05-19 18:58:21 +02:00
Michael Lingelbach
edd48f57aa
Merge pull request #14583 from cbarrete/unsupported-call-hierarchies
...
lsp: handle unsupported call hierarchy call
2021-05-19 09:39:44 -07:00
kevinhwang91
19d4926f5a
vim-patch:8.2.0959: using 'quickfixtextfunc' is a bit slow
...
Problem: Using 'quickfixtextfunc' is a bit slow.
Solution: Process a list of entries. (Yegappan Lakshmanan, closes vim/vim#6234 )
00e260bb6c
2021-05-20 00:24:22 +08:00
kevinhwang91
00246d7be5
vim-patch:8.2.0933: 'quickfixtextfunc' does not get window ID of location list
...
Problem: 'quickfixtextfunc' does not get window ID of location list.
Solution: Add "winid" to the dict argument. (Yegappan Lakshmanan,
closes vim/vim#6222 )
7ba5a7eff3
2021-05-20 00:19:25 +08:00
kevinhwang91
ebe1a08366
vim-patch:8.2.0869: it is not possible to customize the quickfix window contents
...
Problem: It is not possible to customize the quickfix window contents.
Solution: Add 'quickfixtextfunc'. (Yegappan Lakshmanan, closes vim/vim#5465 )
858ba06d5f
2021-05-20 00:16:07 +08:00
Cédric Barreteau
ca336c681d
lsp: handle unsupported call hierarchy call
2021-05-19 11:55:03 -04:00
Marco Hinz
34922fba6b
Revert "lsp: make tagstack smarter motion-wise ( #12262 )"
...
This reverts commit 8885ea7f24
.
2021-05-19 15:33:32 +02:00
Marco Hinz
3e5c484ec5
Revert "lsp: fix regression in jump_to_location() ( #14446 )"
...
This reverts commit 993ca90c9b
.
2021-05-19 15:31:41 +02:00
Björn Linse
ef9d3e6791
docs: fix some remanining cases of gender pronoun for "the user"
...
Adapted from original PR by:
Co-Author: Mathias Jean Johansen <mathias@mjj.io>
2021-05-18 22:47:17 +02:00
Michael Lingelbach
63df353545
lsp: handle case where CompletionItem.insertTextFormat is nil
...
* Update tests to use explicit insertTextFormat for snippets
2021-05-16 15:25:34 -07:00
Yegappan Lakshmanan
e0a01bdf7f
Update vim diff and credits ( #14566 )
...
Patch 8.2.2524 added the support for the fields 'foldopen', 'foldclose'
and 'foldsep' to the 'fillchars' option in Vim:
http://ftp.vim.org/pub/vim/patches/8.2/8.2.2524
Update the credits in intro.txt based on Vim credits.
2021-05-16 13:55:53 -04:00
Jan Edmund Lazo
dab6b08a1e
Merge pull request #14406 from shadmansaleh/vim-8.2.0877
...
vim-patch:8.2.{0877, 0880, 0884, 0887, 0896} - port searchcount()
2021-05-15 20:57:50 -04:00
Shadman
d67dcaba02
vim-patch:8.2.2854: custom statusline cannot contain % items ( #14558 )
...
Problem: Custom statusline cannot contain % items.
Solution: Add "%{% expr %}". (closes vim/vim#8190 )
30e3de21fc
2021-05-15 13:10:41 -04:00
Michael Lingelbach
ba04b3d838
Merge pull request #14555 from mickael-menu/fix/range-code-action
...
lsp: Fix range end offset off by one character
2021-05-14 12:30:47 -07:00
Mickaël Menu
c23640140d
lsp: Fix range end offset off by one character
2021-05-14 18:33:23 +02:00
Raymond W. Ko
7c95697026
treesitter: add predicate "any-of?" ( #14344 )
...
For the case of Clojure and other Lisp syntax highlighting, it is
necessary to create huge regexps consisting of hundreds of symbols with
the pipe (|) character. To make things more difficult, these Lisp
symbols sometimes consists of special characters that are themselves
part of special regexp characters like '*'. In addition to being
difficult to maintain, it's performance is suboptimal.
This patch introduces a new predicate to perform 'source' matching in
amortized constant time. This is accomplished by compiling a hash table
on the first use.
2021-05-14 17:41:20 +02:00
Stephan Seitz
5c9b4948d4
treesitter: do not escape in match? ( #14382 )
2021-05-11 11:52:47 +02:00
Viktor Kojouharov
5ea9cbc280
Update the functio documentation in C
2021-05-10 11:27:48 +02:00
Jan Edmund Lazo
d2be261e8d
Merge pull request #14403 from seandewar/vim-8.2.1933
...
vim-patch:8.2.{0174,1933,1935,1946,2286,2287}
2021-05-09 17:08:21 -04:00
shadmansaleh
e498f265f4
vim-patch:8.2.0877: cannot get the search statistics
...
Problem: Cannot get the search statistics.
Solution: Add the searchcount() function. (Fujiwara Takuya, closes vim/vim#4446 )
e8f5ec0d30
Additional changes:
- Tests weren't passing because the test ran assuming the cursor was at
start of buffer but append() left the cursor at end of buffer .
So cursor is moved to start of buffer after append.
- searchcount() added to list of builtin functions.
2021-05-09 06:37:01 +06:00
Jan Edmund Lazo
ec04d37188
vim-patch:8.2.2839: default redirection missing "ash" and "dash"
...
Problem: Default redirection missing "ash" and "dash".
Solution: Recognize "ash" and "dash". (Natanael Copa, closes vim/vim#8180 )
5631836975
2021-05-08 08:23:44 -04:00
Jan Edmund Lazo
6fcd96250b
vim-patch:8.2.2838: file extension .wrap not recognized
...
Problem: File extension .wrap not recognized.
Solution: Use dosini filetype for .wrap files. (Liam Beguin, closes vim/vim#8177 )
e3e598e82b
2021-05-08 08:17:49 -04:00
Viktor Kojouharov
a257f00f75
Minor observational corrections to the set_extmark documentation
...
Add a note for the line and col, saying they are 0-based.
The end_col appears to be exclusive, unline the end_line.
2021-05-07 15:27:38 +02:00
Jan Edmund Lazo
5165513198
Merge pull request #13664 from ivechan/win_exectute
...
vim-patch:8.1.{1418,1425,1832,2124},8.2.{0137, 2340}
2021-05-07 08:34:28 -04:00
Marco Hinz
17434b88b4
checkhealth: ignore 'wildignore' when seeking executables ( #14495 )
...
Certain values of 'wildignore', .e.g `*/node_modules/**`, would make the
provider checks not find the right executables.
Fixes https://github.com/neovim/neovim/issues/14388
2021-05-07 11:07:07 +02:00
jing
f6518e5516
vim-patch:8.1.1418: win_execute() is not implemented yet
...
Problem: Win_execute() is not implemented yet.
Solution: Implement it.
868b7b6712
2021-05-06 23:44:47 +08:00
Jan Edmund Lazo
f70ecbd4dc
vim-patch:8.2.1166: once mouse move events are enabled getchar() returns them
...
Problem: Once mouse move events are enabled getchar() returns them.
Solution: Ignore K_MOUSEMOVE in getchar(). (closes vim/vim#6424 )
ae97b94176
2021-05-06 00:26:37 -04:00
Jan Edmund Lazo
4ad30f775e
Merge pull request #14424 from janlazo/vim-8.1.1726
...
vim-patch:8.1.1726,8.2.{296,860,1827,2388,2788,2790,2801}
2021-05-04 19:18:16 -04:00
Jan Edmund Lazo
d5b063aec1
Revert vim-patch:942db23c9cb7 for phpcomplete.vim
...
It targets Vim 8.2 without feature and version checks.
2021-05-04 07:28:24 -04:00
Thomas Vigouroux
3fc71ea228
Merge pull request #14418 from DerekStride/treesitter-set-directive
...
[RDY] tree-sitter ensure there is a nested table allocated for `#set!`
2021-05-03 21:41:39 +02:00
Michael Lingelbach
ad81144442
Merge pull request #14334 from DarwinSenior/vim.log
...
lsp: deep copy vim.lsp.log when reloading
2021-05-02 23:40:34 -07:00
Michael Lingelbach
cfaf666ac9
Merge pull request #14462 from kabouzeid/feature/formatting_seq_sync
...
[LSP] Support for sequential formatting with multiple clients
2021-05-02 12:52:27 -07:00
Jan Edmund Lazo
ad6bb386be
vim-patch:4c295027a426
...
Update runtime files
4c295027a4
2021-05-02 13:00:38 -04:00
Jan Edmund Lazo
d19ede86ea
vim-patch:8.2.2790: filetype test fails
...
Problem: filetype test fails
Solution: Also update the scripts detection
63276685f9
2021-05-02 12:54:06 -04:00
Jan Edmund Lazo
0020858e1c
vim-patch:8.2.2788: Raku is now the only name what once was called perl6
...
Problem: Raku is now the only name what once was called perl6.
Solution: Adjust the filetype detection. (closes vim/vim#8120 )
3f88e71fa2
2021-05-02 12:54:02 -04:00
Jan Edmund Lazo
3bc852cabf
vim-patch:11e3c5ba8203
...
Update runtime files
11e3c5ba82
2021-05-02 12:53:49 -04:00
Jan Edmund Lazo
7e36c9a2d3
vim-patch:56994d215815
...
Update runtime files.
56994d2158
2021-05-02 12:44:04 -04:00
Jan Edmund Lazo
abb13dde98
vim-patch:130cbfc31235
...
Update runtime files
130cbfc312
2021-05-02 12:03:34 -04:00
Jan Edmund Lazo
b8f3ef10c9
vim-patch:dad4473f02e1
...
Update runtime files.
dad4473f02
Omit :echoconsole. Patch v8.2.2638 is not ported.
2021-05-02 11:51:38 -04:00
Karim Abou Zeid
bcf03affbd
Increase default LSP sync timeout to 1000ms
2021-05-02 17:08:57 +02:00
Jan Edmund Lazo
eea3a692c6
vim-patch:c8cdf0f80b3c
...
Update runtime files.
c8cdf0f80b
2021-05-02 10:33:32 -04:00
Karim Abou Zeid
d923f38882
Add client.request_sync doc
2021-05-02 16:24:58 +02:00
Jan Edmund Lazo
6a8436065c
vim-patch:9faec4e3d439
...
Update runtime files.
9faec4e3d4
Omit vim9.
2021-05-02 10:23:35 -04:00
Karim Abou Zeid
f0f3fddcdd
Synchronous formatting methods notify the user on timeout and interrupted
2021-05-02 16:16:49 +02:00
Karim Abou Zeid
dc9c6ea219
Support multiple range formatting clients
2021-05-02 15:37:31 +02:00
Karim Abou Zeid
54368736d0
doc clarification
2021-05-02 15:23:13 +02:00
Jan Edmund Lazo
2081504a33
vim-patch:942db23c9cb7
...
Update runtime files
942db23c9c
Omit po files.
2021-05-01 23:47:11 -04:00
Jan Edmund Lazo
ac83c6eba6
vim-patch:e0e391755432
...
Update runtime files.
e0e3917554
2021-05-01 23:19:58 -04:00
Jan Edmund Lazo
8f8602d2df
vim-patch:98a29d00a48e
...
Update runtime files.
98a29d00a4
2021-05-01 23:19:57 -04:00
Jan Edmund Lazo
dd2bc06411
vim-patch:82be4849eed0
...
Update runtime files.
82be4849ee
2021-05-01 23:19:57 -04:00
Jan Edmund Lazo
c1dd4e83b4
vim-patch:7e6a515ed14e
...
Update runtime files.
7e6a515ed1
Omit vim9.
2021-05-01 22:29:03 -04:00
Jan Edmund Lazo
b1cd67b62e
vim-patch:4072ba571bab
...
Update runtime files.
4072ba571b
Omit vim9 references.
Omit assert_fails(). Patch v8.2.1183 is not ported yet.
2021-05-01 22:29:03 -04:00
Jan Edmund Lazo
710f0eae2f
vim-patch:1b884a005398
...
Update runtime files.
1b884a0053
Omit doc/autocmd.txt.
Omit tools/emoji_list.vim. Patch v8.2.1540 is not ported.
2021-05-01 22:29:03 -04:00
Jan Edmund Lazo
83b6a18598
vim-patch:23515b4ef758
...
Update runtime files
23515b4ef7
Omit filetype.txt changes for :Man.
2021-05-01 22:29:03 -04:00
Jan Edmund Lazo
0c93005383
vim-patch:4466ad6baa22
...
Update runtime files
4466ad6baa
Omit vim9 references in autocmd.txt.
Omit matchfuzzypos().
2021-05-01 22:29:02 -04:00
Jan Edmund Lazo
2ebd1f6286
vim-patch:3132cddd209e
...
Update runtime files
3132cddd20
Omit :sort,sort() changes.
2021-05-01 22:29:02 -04:00
Jan Edmund Lazo
330500a5bf
vim-patch:cb80aa2d53e5
...
Update runtime files.
cb80aa2d53
Omit runtime/doc/tabpage.txt.
Patch v8.2.1401 is not ported yet.
Port optwin.vim changes without gettext().
Patch v8.2.1544 is not ported yet.
2021-05-01 22:29:02 -04:00
Karim Abou Zeid
48a59f8f4f
Add formatting_seq_sync, change formatting and formatting_sync
2021-05-01 21:12:40 +02:00
Jan Edmund Lazo
b16c7c515c
vim-patch:4f4d51a942cc
...
Update runtime files.
4f4d51a942
Omit "??" operator.
Patches v8.2.1794,v8.2.1798 are not ported yet.
2021-05-01 14:22:52 -04:00
francisco souza
993ca90c9b
lsp: fix regression in jump_to_location() ( #14446 )
...
This fixes a regression that was introduced in [1] by accidentally leaving out a line.
1: https://github.com/neovim/neovim/pull/12262
2021-05-01 19:28:21 +02:00
TJ DeVries
27da5511a0
docs: Treesitter ( #13260 )
...
* doc & fixes: Generate treesitter docs
* fixup to treesitter-core
* docs(treesitter): fix docs for most functions
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
2021-05-01 08:19:48 -04:00
Shadman
ca6107cfbc
doc: update vim.cmd() ( #14450 )
2021-05-01 13:09:05 +02:00
Jan Edmund Lazo
b084f49496
vim-patch:8.2.1827: filetype detection does not test enough file names
...
Problem: Filetype detection does not test enough file names.
Solution: Test more file names. (Adam Stankiewicz, closes vim/vim#7099 )
10a1a534d1
2021-05-01 02:27:32 -04:00
Jan Edmund Lazo
e1171cf1d2
vim-patch:d58a3bf7dac8
...
Update runtime files.
d58a3bf7da
Omit syntax/man.vim.
2021-05-01 02:01:25 -04:00
Jan Edmund Lazo
d1a2523f6c
vim-patch:1d59aa1fdfb1
...
Update runtime files.
1d59aa1fdf
2021-05-01 01:37:13 -04:00
Mathias Fussenegger
69d4143e7b
lsp: Allow decoded.result to be false
...
Some servers might respond to `workspace/executeCommand` requests with a
boolean result and that could be `false`.
A `false` result should be allowed and not trigger the `on_error`
handler:
-- Invalid server message
on_error(client_errors.INVALID_SERVER_MESSAGE, decoded)
Concrete example where this occurred is with eclipse.jdt.ls:
vim.lsp.buf_request(
0,
'workspace/executeCommand',
{
command = 'java.project.isTestFile',
arguments = { vim.uri_from_bufnr(0), },
},
function(err, _, resp)
print(vim.inspect(err), vim.inspect(resp))
end
)
2021-04-30 20:17:56 +02:00
Jan Edmund Lazo
f5d1f0bf03
vim-patch:1c6737b20a5c
...
Update runtime files.
1c6737b20a
2021-04-29 23:35:37 -04:00
Jan Edmund Lazo
1e03e76daf
vim-patch:207f009326c8
...
Update runtime files.
207f009326
Omit nl.po.
2021-04-29 21:56:34 -04:00
Jan Edmund Lazo
9f54d125d2
vim-patch:3d1cde8a2f28
...
Update runtime files.
3d1cde8a2f
2021-04-29 21:08:09 -04:00
Jan Edmund Lazo
09f3e62bc6
vim-patch:e7b1ea0276cc
...
Update runtime files.
e7b1ea0276
2021-04-29 20:42:16 -04:00
Jan Edmund Lazo
0a0034718c
vim-patch:2547aa930b59
...
Update runtime files.
2547aa930b
Omit modifyOtherKeys, vim9, vim.man.
2021-04-29 09:27:19 -04:00
Jan Edmund Lazo
27fb03f5a0
vim-patch:7ff78465f705
...
Update runtime files
7ff78465f7
2021-04-28 23:04:14 -04:00
Jan Edmund Lazo
bb172c5104
vim-patch:e46a44050562
...
Runtime file updates
e46a440505
Omit vim9.
2021-04-28 22:42:43 -04:00
Jan Edmund Lazo
7c6ca6fed8
vim-patch:73fef33014db
...
Update runtime files
73fef33014
Omit usr_46.txt.
2021-04-28 22:14:37 -04:00
Jan Edmund Lazo
df2acdc3be
vim-patch:65e0d77a66b7
...
Update runtime files
65e0d77a66
Omit usr_46.txt because of vim9.
2021-04-28 21:57:50 -04:00
Jan Edmund Lazo
565783be4b
vim-patch:acc224064033
...
Update runtime files
acc2240640
Omit 'quickfixtextfunc'.
Omit ftplugin/man.vim.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo
04a4bbbe56
vim-patch:8.2.0860: cannot use CTRL-A and CTRL-X on unsigned numbers
...
Problem: Cannot use CTRL-A and CTRL-X on unsigned numbers.
Solution: Add "unsigned" to 'nrformats'. (Naruhiko Nishino, closes vim/vim#6144 )
aaad995f83
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo
65821cc1b9
vim-patch:388a5d4f20b4
...
Update runtime files
388a5d4f20
Omit vim9.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo
0185625c04
vim-patch:47e13953ffdb
...
Update runtime files
47e13953ff
Ignore *.rej files, generated by vim-patch.sh.
Source of mistakes for 1st-time contributors.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo
3d86857f28
vim-patch:2cfb4a2a7248
...
Update runtime files
2cfb4a2a72
2021-04-28 21:29:56 -04:00
Jan Edmund Lazo
038ce7a5af
vim-patch:7ceefb35c811
...
Update runtime files
7ceefb35c8
Omit {ftplugin,syntax}/man.vim changes.
Omit E565,E578. They depend on patches v8.2.0614, v2.2.0670.
2021-04-28 21:29:56 -04:00
Jan Edmund Lazo
c2635665c5
vim-patch:2c7f8c574f1f
...
Update runtime files
2c7f8c574f
Omit the following line for man.vim:
hi def link manFooter PreProc
2021-04-28 21:29:56 -04:00
Jan Edmund Lazo
9d3576246b
vim-patch:8.2.2801: free Pascal makefile not recognized
...
Problem: Free Pascal makefile not recognized.
Solution: Add the fpcmake filetype. (Doug Kearns)
f6d9935a13
2021-04-27 22:54:38 -04:00
Jan Edmund Lazo
e612a0a76a
vim-patch:d1caa941d876
...
Update runtime files
d1caa941d8
Cherry-pick error E452 from patch v8.2.0486.
2021-04-27 22:40:39 -04:00
Jan Edmund Lazo
d894b3da1e
vim-patch:191acfdecabf
...
Update runtime files
191acfdeca
Skip has() changes for the "check" optional argument.
Patch v8.2.0427 is not ported yet.
Skip Vim9 (ex. :def).
2021-04-27 21:47:42 -04:00
Jan Edmund Lazo
c287e734f1
vim-patch:ff78155aa175
...
Update runtime files
ff78155aa1
Omit menu_info().
2021-04-27 21:31:28 -04:00
Jan Edmund Lazo
e7f6c52014
vim-patch:b17893aa940d
...
Update runtime files
b17893aa94
Omit feedkeys() changes.
2021-04-27 21:25:35 -04:00
Jan Edmund Lazo
a299f54cd7
vim-patch:eab6dff19f38
...
Update runtime files
eab6dff19f
Omit de.po translations.
2021-04-27 20:25:21 -04:00
derekstride
44d4526e18
Ensure there is a nested table allocated for #set!
...
Fixes the following bug:
```
test/functional/helpers.lua:107: Error executing lua:
vim/treesitter/query.lua:256: attempt to index a nil value
```
2021-04-27 12:29:37 -02:30
Jan Edmund Lazo
95f02cb587
vim-patch:8.2.2388: no easy way to get the maximum or mininum number value
...
Problem: No easy way to get the maximum or mininum number value.
Solution: Add v:numbermax and v:numbermin.
57d5a01cb4
2021-04-27 09:21:36 -04:00
Jan Edmund Lazo
25c0675fe3
vim-patch:8.2.0296: mixing up "long long" and __int64 may cause problems
...
Problem: Mixing up "long long" and __int64 may cause problems. (John
Marriott)
Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
f9706e9df0
2021-04-27 09:21:35 -04:00
Jan Edmund Lazo
e257aff016
vim-patch:bc93cebb692f
...
Update runtime files.
bc93cebb69
2021-04-27 09:21:35 -04:00
Jan Edmund Lazo
278ca5f456
vim-patch:ebdf3c964a90
...
Update runtime files.
ebdf3c964a
Omit vim9.
2021-04-27 09:21:35 -04:00
Jan Edmund Lazo
4819737853
vim-patch:560979ed4f02
...
Update runtime files.
560979ed4f
Omit vim9.
2021-04-27 09:21:34 -04:00
Jan Edmund Lazo
e8178093dc
vim-patch:1d9215b9aaa1
...
Update runtime files.
1d9215b9aa
2021-04-27 09:21:34 -04:00
Jan Edmund Lazo
d112db157c
vim-patch:ade0d3946801
...
Update runtime files.
ade0d39468
2021-04-27 09:21:34 -04:00
Jan Edmund Lazo
f406e4631d
vim-patch:8024f9363683
...
Update runtime files.
8024f93636
Omit "modifyOtherKeys" changes.
2021-04-27 09:21:34 -04:00
Jan Edmund Lazo
5e1f434764
vim-patch:2963456ff2b7
...
Update runtime files.
2963456ff2
2021-04-27 09:21:33 -04:00
Jan Edmund Lazo
c8f07e5e1f
vim-patch:d7df279808f7
...
Update a few runtime files.
d7df279808
2021-04-27 09:21:33 -04:00
Jan Edmund Lazo
ae362c2120
vim-patch:5666fcd0bd79
...
Update runtime files.
5666fcd0bd
Do not manually port E290 error message.
Neovim has E5030,E5031 error messages to replace E290.
2021-04-27 09:21:33 -04:00
Jan Edmund Lazo
841bc219d2
vim-patch:95a9dd1efc5a
...
Update runtime files.
95a9dd1efc
2021-04-27 09:21:32 -04:00
Jan Edmund Lazo
62adc04f08
vim-patch:469bdbde1e8e
...
Minor runtime file updates.
469bdbde1e
2021-04-27 09:21:32 -04:00
Jan Edmund Lazo
f19c896e9d
vim-patch:2ed639abdc40
...
Update a few runtime files.
2ed639abdc
2021-04-27 09:21:32 -04:00
Jan Edmund Lazo
d227c22f00
vim-patch:32b364fcc097
...
Runtime file updates.
32b364fcc0
2021-04-27 09:21:31 -04:00
Jan Edmund Lazo
527d108223
vim-patch:664f3cf3f21d
...
Runtime file updates.
664f3cf3f2
2021-04-27 09:21:31 -04:00
Jan Edmund Lazo
3e47e529b0
vim-patch:c08ee7476b19
...
Update runtime files.
c08ee7476b
2021-04-27 09:21:31 -04:00
Jan Edmund Lazo
5426785541
vim-patch:9834b96820be
...
Update version 8.2 notes and make syntax.
9834b96820
2021-04-27 09:21:31 -04:00
Jan Edmund Lazo
8e782f6124
vim-patch:4ceaa3a6e0b8
...
Update a few runtime files
4ceaa3a6e0
Omit de.po.
2021-04-27 09:21:31 -04:00
Jan Edmund Lazo
b918d99a61
vim-patch:91359014b359
...
Update runtime files.
91359014b3
2021-04-27 09:21:30 -04:00
Jan Edmund Lazo
348f72524d
vim-patch:0c0734d527a1
...
Update runtime files
0c0734d527
Omit rand(), srand() documentation.
Patch v8.1.2342 is not ported yet.
2021-04-27 09:21:30 -04:00
Jan Edmund Lazo
d1231d4f8e
vim-patch:403f3eb4c189
...
Update runtime files.
403f3eb4c1
Port sr.po changes, done by vim-patch.sh.
No way I'm manually porting the rest.
2021-04-27 09:21:30 -04:00
Jan Edmund Lazo
52564c9aa2
vim-patch:09c6f265b210
...
Update runtime files.
09c6f265b2
Omit getmousepos().
Patch v8.1.2304 is not ported yet.
2021-04-27 09:21:30 -04:00
Jan Edmund Lazo
d270313c79
vim-patch:1ebbb6ee452d
...
Fix vim.desktop generation.
1ebbb6ee45
2021-04-27 09:21:29 -04:00
Jan Edmund Lazo
cf0fb01ea5
vim-patch:574ee7bc1246
...
Update runtime files
574ee7bc12
Omit ru.po because I don't know the language and there's too much to port.
2021-04-27 09:21:29 -04:00
Jan Edmund Lazo
6cdb755507
vim-patch:5ef1c6a4838a
...
Update runtime files
5ef1c6a483
"scrollfocus" is for Windows GUI only so it is N/A.
2021-04-27 09:21:29 -04:00
Jan Edmund Lazo
d4b65fa6fb
vim-patch:1ff14ba24c4d
...
Update runtime files.
1ff14ba24c
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo
233292b0ba
vim-patch:96f45c0b6fc9
...
Update runtime files
96f45c0b6f
Omit de.po changes.
Same reason as before: too much and I don't understand the language.
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo
f0bf853f41
vim-patch:2e693a88b24d
...
Update runtime files.
2e693a88b2
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo
ecb48e7f8a
fixup! man.vim: Refactor verify_exists to unset $MANSECT as needed
...
":unset" is not a valid Ex command.
Use setenv() to set/unset environment variables.
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo
b1fed1ada9
vim-patch:5be4ceecea55
...
Update runtime files.
5be4ceecea
2021-04-27 09:21:27 -04:00
Jan Edmund Lazo
766a107839
vim-patch:589edb340454
...
Updte runtime files
589edb3404
Omit state() changes in eval.txt because patch v8.1.2047 is not merged.
2021-04-27 09:21:27 -04:00
Jan Edmund Lazo
d6cef4ef9d
vim-patch:8fe1000e9c34
...
Update runtime files
8fe1000e9c
Omit de.po changes.
There's too many lines to port and I don't understand the language.
2021-04-27 09:21:27 -04:00
Jan Edmund Lazo
01a629ca03
vim-patch:8.1.1726: the eval.txt help file is too big
...
Problem: The eval.txt help file is too big.
Solution: Split off testing support to testing.txt. Move function details
to where the functionality is explained.
ed997adaa1
Vim commit 5477506a9f01d40fad2e8f0555bc37adee30478f
contains the duplicate tag fix in runtime/doc/testing.txt.
2021-04-27 09:21:26 -04:00
Michael Bleuez
684b4ae736
doc : fixing missing @return in nvim_open_term doc
2021-04-24 12:47:52 +02:00
Michael Lingelbach
11728988dc
Merge pull request #14429 from ckipp01/force
...
[LSP] - Don't automatically force shutdown on second restart.
2021-04-23 14:52:13 -07:00
Gabriel Sanches
8885ea7f24
lsp: make tagstack smarter motion-wise ( #12262 )
...
This commit prevents two things regarding the tagstack and jumping to
locations:
- Pushing the same item twice in a row
- Pushing an item where the destination is the same as the source
Both prevent having to press CTRL-T additional times just to pop items
that don't make the cursor move.
2021-04-23 14:50:35 -07:00
Michael Lingelbach
4eb29e079a
Revert "lsp: fix blocking in closing of clients"
...
This reverts commit 2e6c09838f
.
* Fixes #14428
* This commit caused neovim to close while open handles to the uv timer
to kill active language servers were still open
2021-04-23 12:17:00 -07:00
Marco Hinz
be494023d8
lsp: check if config is nil
2021-04-23 20:56:44 +02:00
Marco Hinz
4de404a681
lsp: sort diagnostics by severity ( #14372 )
...
Allow to sort diagnostics (and thus signs and virtual text) by severity, so that
the most important message is shown first.
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
severity_sort = true,
}
)
Fixes https://github.com/neovim/neovim/issues/13929
2021-04-23 20:09:56 +02:00
ckipp01
2a77d9d8a4
Don't automatically force shutdown on second restart.
...
This is maybe a bit of a niche case, but I hit on this often as I'm
developing a server, and therefore continually restarting it to get the
latest changes of the server. Previously, I could only do this once
since if you send in a request to restart/shut down the server, it will
register it as a `tried_graceful_shutdown = true` meaning that the next
restart would force it to be killed instead of another graceful exit.
Instead, this changes the name a bit and now it will only mark
`graceful_shutdown_failed = true` _if_ it actually fails to gracefully
shutdown. This change allows for a user to restart multiple times in a
situation like mine where nothing is going wrong, but I just want to
restart continually as I'm developing without having to close and
reopen.
2021-04-23 14:26:33 +02:00
Sean Dewar
65f35e0c7d
vim-patch:8.2.1588: cannot read back the prompt of a prompt buffer
...
Problem: Cannot read back the prompt of a prompt buffer.
Solution: Add prompt_getprompt(). (Ben Jackson, closes vim/vim#6851 )
077cc7aa0e
Updated prompt_getprompt() doc to cb80aa2d53
and removed mention of method syntax usage (not supported by Nvim).
2021-04-21 14:55:04 +01:00
Sean Dewar
eef5a627bf
doc: port changes for locale-based :sort
...
Cherry-picked from 3132cddd20
.
2021-04-20 10:12:10 +01:00
Sean Dewar
6a0b8cbd81
vim-patch:8.2.1933: cannot sort using locale ordering
...
Problem: Cannot sort using locale ordering.
Solution: Add a flag for :sort and sort() to use the locale. (Dominique
Pellé, closes vim/vim#7237 )
55e29611d2
2021-04-20 10:12:02 +01:00
Sean Dewar
1d72b6e4cd
eval: port v:collate
...
Cherry-picked from patch v8.2.0988. Required for patch v8.2.1933.
2021-04-20 02:03:46 +01:00
Michael Lingelbach
26bd5a58df
Merge pull request #14180 from oberblastmeister/lsp_exit_perf
...
fix slow closing of lsp clients when exiting vim
2021-04-19 17:35:58 -07:00
Brian Shu
2e6c09838f
lsp: fix blocking in closing of clients
2021-04-19 20:04:08 -04:00
Matthieu Coudron
e343437bb6
Merge pull request #12323 from da-x/orphaned-signs
...
Handle 'orphaned signs' on line deletion for signcolumn >= 2
2021-04-18 17:12:41 +02:00
Jan Edmund Lazo
a129887c00
vim-patch:8.2.2773: PSL filetype not recognized ( #14389 )
...
Problem: PSL filetype not recognized.
Solution: Add a filetype pattern. (Daniel Kho, closes vim/vim#8117 )
112a006417
2021-04-17 22:41:51 -04:00
Dan Aloni
f2ed7605da
Handle 'orphaned signs' on line deletion for signcolumn >= 2
2021-04-17 10:11:17 +03:00
Dingcheng Yue
6974d0c6c1
lsp: deep copy vim.lsp.log when reloading
...
If vim.lsp.log is loaded the second time,
the vim.log.levels will be modified with additional
entries from 0-5.
This will cause the require to fail as level:lower does
not exists on numbered value.
2021-04-16 11:43:20 +01:00
Björn Linse
a6504ec339
Merge pull request #13684 from pohzipohzi/input
...
doc: add description for cancelreturn option in input()
2021-04-16 09:47:45 +02:00
Jan Edmund Lazo
fe808f02f6
Merge pull request #14355 from janlazo/vim-8.1.2313
...
vim-patch:8.1.2313,8.2.{2046,2769}
2021-04-15 21:55:56 -04:00
Jan Edmund Lazo
b34dc4c458
ex_cmds: port :eval
...
Cherry-picked from patch v8.1.1807.
Required for patch v8.2.2761.
2021-04-15 18:30:03 -04:00
Jan Edmund Lazo
011cfc538c
vim-patch:8.2.2769: Modula-3 config files are not recognized
...
Problem: Modula-3 config files are not recognized.
Solution: Add filetype patterns. (Doug Kearns)
6bc00699c5
2021-04-15 18:08:55 -04:00
Brian Shu
ef5314ce59
lsp: add lsp.buf_request_all for invoking asynchronous callbacks
...
fixed nil issue
changed poll to 10
changed wording
added docs to once
comma
english
2021-04-15 12:54:59 -04:00
Mathias Fussenegger
046991e4d5
lsp: Remove vim.NIL handling from apply_text_document_edit
...
The rpc layer normalizes `vim.NIL` to `nil`, so the scenario tested
should never happen.
2021-04-14 21:42:03 +02:00
Mathias Fussenegger
b67f689e4c
lsp: Accept text document edits with version zero
...
There were a couple of reports of "Buffer X newer than edits" problems.
We first assumed that it is incorrect for a server to send 0 as a
version - and stated that they should send a `null` instead, given that
in the specification the `textDocument` of a `TextDocumentEdit` is a
`OptionalVersionedTextDocumentIdentifier`.
But it turns out that this was a change in 3.16, and in 3.15 and earlier
versions of the specification it was a `VersionedTextDocumentIdentifier`
and language servers didn't have a better option than sending `0` if
they don't keep track of the version numbers.
So this changes the version check to always accept `0` values.
See
- https://github.com/neovim/neovim/issues/12970
- https://github.com/neovim/neovim/issues/14256
- https://github.com/haskell/haskell-language-server/pull/1727
2021-04-14 21:29:32 +02:00
Aru Sahni
d9c7adc64c
doc: prefer "python -m pip" ( #14353 )
...
The current guidance for install Python packages is to use
python -m pip install <package_name>
Instead of
pip install <package_name>
This ensures that one is using the version of pip that is tied to the
environment's interpreter (and, thusly, its packages). This has [been
endorsed by a core
maintainer](https://snarky.ca/why-you-should-use-python-m-pip/ ) as
being the recommended way to invoke pip.
As there currently are a few places where the old invocation was used,
attempt to bring them in line.
Fixes #14234
2021-04-14 20:48:13 +02:00
Sean Dewar
6ab4c8f955
doc: port prompt-buffer section ( #14342 )
...
[skip ci]
Changes from original include:
- "See |terminal-window|" -> "See |terminal|".
- Remove mention of using CTRL-W window commands in insert mode.
- Converted usage example to use the Nvim job and channel API.
- Removed logging from usage example, as ch_logfile() has no direct Nvim
counterpart.
- Fixed some small grammar/spelling mistakes.
2021-04-14 20:39:37 +02:00