Commit Graph

18170 Commits

Author SHA1 Message Date
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
b3e3ab0567
Merge pull request #14733 from mjlbach/fix_docs_2
docs(lsp): fix locations_to_items docstring
2021-06-05 20:45:24 -07: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
21ecde1728
Merge pull request #14729 from mjlbach/feat/diagnostic_quickfix_cleanup
feat(lsp): remove line from diagnostic quickfix
2021-06-05 13:57:16 -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
Jan Edmund Lazo
becbb7436f
Merge pull request #14724 from janlazo/vim-8.2.2877
vim-patch:8.0.1578,8.2.{2877,2937}
2021-06-05 13:18:05 -04:00
github-actions[bot]
bfcec8d2f0
version.c: update [skip ci] (#14328)
Co-authored-by: marvim <marvim@users.noreply.github.com>

vim-patch:8.1.1433: win_execute() may leave popup window focused
vim-patch:8.1.2257: MS-Windows GUI: scroll wheel always uses current window

vim-patch:8.2.0520: tests are not listed in sorted order
vim-patch:8.2.2794: Linux users don't know how to get ncurses
vim-patch:8.2.2807: build fails with tiny features
vim-patch:8.2.2818: no jump added when opening terminal in current window
vim-patch:8.2.2823: MS-Windows: launching Vim from installer doesn't open README
vim-patch:8.2.2830: terminal colors are not updated when 'background' is set
vim-patch:8.2.2836: build failure without the +quickfix feature
vim-patch:8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set
vim-patch:8.2.2845: MS-Windows: warning for signed/unsigned comparison
vim-patch:8.2.2852: configure can add --as-needed a second time
vim-patch:8.2.2859: Tcl test fails because of changed error message
vim-patch:8.2.2876: configure cannot detect Python 3.10
vim-patch:8.2.2883: MS-Windows manifest file name is misleading
vim-patch:8.2.2889: typo and verbose comment in Makefiles
vim-patch:8.2.2891: cannot build with Perl 5.34
vim-patch:8.2.2899: Appveyor script does not detect nmake failure
vim-patch:8.2.2907: memory leak when running out of memory
vim-patch:8.2.2909: build error with non-Unix system
vim-patch:8.2.2913: MS-Windows conpty supports using mouse events
vim-patch:8.2.2919: using ":!command" does not work if it uses posix_spawn()
vim-patch:8.2.2923: EBCDIC build is broken
vim-patch:8.2.2924: superfluous extern declaration
vim-patch:8.2.2929: accidentally enable tcl by default
vim-patch:8.2.2939: GTK: righthand scrollbar does not show with split window
vim-patch:8.2.2940: MS-Windows: cannot see the size when resizing

vim-patch:e307073680d498b113c7df8250abd5676de1ed13
vim-patch:8fbd6723af3248a1fa46fa1e610804841603abe5
vim-patch:d52986e7be366b6f8c9e18078648f1c5219c4335
vim-patch:7a212c625362d86327878d57269d63f6a2ca5d2b
vim-patch:424e98baab3bf05d7946f99ddfa180ae71570650
vim-patch:2b72821924ff514727b60fb0b647d5caae8336f7
vim-patch:c882e4d169fd5e0364bc91642040337efe7327a6
2021-06-05 13:16:27 -04:00
Jan Edmund Lazo
77b24c867b
window: pvs/v1071
"void" cast unused return value of win_comp_pos().
2021-06-05 12:49:28 -04:00
Jan Edmund Lazo
0aa16dbd18
regexp: pvs/v1071
"void" cast unused return values of getchr(), peekchr().
2021-06-05 12:49:28 -04:00
Jan Edmund Lazo
61e07d98dd
fold: pvs/v1071
"void" cast unused return value of hasFolding().
2021-06-05 12:49:28 -04:00
Jan Edmund Lazo
c6b8598616
memline: pvs/v1071
"void" cast unused return value of ml_find_line().
2021-06-05 12:49:28 -04:00
Jan Edmund Lazo
ac64055826
indent_c: pvs/v1071
"void" cast unused return value of find_last_paren().
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
3d120b1c18
screen: pvs/v614
win_col_offset must be 0 to be no-opt
when passed to col_off param of draw_virt_text().
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
607d1cc80d
fixup! vim-patch:8.2.2136: Vim9: Using uninitialized variable
Resolve pvs/v560 error.
mods is nonnull in the modified inner if-condition.
because it is checked for NULL in the outer if-condition.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
44b6a7b5bf
undo: pvs/v547
buf is nonnull when xfree(buf) is executed.

free(NULL) is safe (for target compilers) so xfree(NULL) is also safe.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
5115bc3f4f
sign: pvs/v547
vim_strsave() returns nonnull.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
729f270266
userfunc: pvs/v547
vim_strsave() returns nonnull.
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
5571004b69
fixup! tests: fix system_spec when run with clipboard manager (#10956)
uv_process_options_t "args" member was set to a local array from stack.
when uv_process_options_t variable is outside the function.
https://pvs-studio.com/en/docs/warnings/v507/
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
304c6ce934
fixup! fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398) 2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
b959de3a5f
vim-patch:8.0.1578: no test for :popup in terminal
Problem:    No test for :popup in terminal.
Solution:   Add a screen dump test.
69f5a3011d
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
60bf49ab1c
vim-patch:8.2.2937: popup test fails if rightleft feature not enabled
Problem:    Popup test fails if rightleft feature not enabled.
Solution:   Check that the rightleft feature is available. (Dominique Pellé,
            closes vim/vim#8321)
56cddb3879
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
1b13c744ea
vim-patch:8.2.2877: insufficient tests for popup menu rightleft
Problem:    Insufficient tests for popup menu rightleft.
Solution:   Add tests. (Yegappan Lakshmanan, closes vim/vim#8235)
1e615669c0
2021-06-05 12:49:26 -04:00
James McCoy
ca802046bf
Merge pull request #14721 from jamessan/mac-ci
fix(ci): Remove gcc@8/gcc@9 homebrew workaround
2021-06-04 12:28:37 -04:00
James McCoy
04985f69eb
fix(ci): Remove gcc@8/gcc@9 homebrew workaround 2021-06-04 11:21:45 -04:00
Jan Edmund Lazo
7d4f890aa9
Merge pull request #14710 from janlazo/clang-warnings
Reduce clang warnings
2021-06-02 22:40:09 -04:00
Jan Edmund Lazo
6a2f1b1740
clang/'Logic error': assert get_decor_provider(id, true) returns nonnull
nvim_set_decoration_provider() has undefined behavior (if not crash)
if get_decor_provider() returns NULL.
2021-06-02 21:49:38 -04:00
Jan Edmund Lazo
68cb51ab0a
fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' (#14398)
tab_firstwin can be NULL.
2021-06-02 21:45:44 -04:00
Jan Edmund Lazo
d1238856a8
clang/'Logic error': has_profiling() may not set forceit 2021-06-02 21:24:01 -04:00
Jan Edmund Lazo
626c631e89
clang/'Logic error': zero-init oldbase array
unrelative() must not have garbage structs.
2021-06-02 21:19:19 -04:00
Jan Edmund Lazo
59db83bc59
clang/API: reject null string in timer_start() 2021-06-02 21:05:13 -04:00
ray-x
351050a10f fix(lsp): floating window border size for string type 'none' and 'shadow' 2021-06-02 20:44:13 +10:00
Thomas Vigouroux
68d40388f3
Merge pull request #14701 from neovim/marvim/api-doc-update/master
docs: regenerate
2021-06-02 08:16:39 +02:00
marvim
2ebc28018e docs: regenerate 2021-06-02 00:43:13 +00:00
James McCoy
056c464e8a
Merge pull request #14692 from jamessan/api-doc-workflow
ci(gha): New workflow to regen API docs on pushes to release branches
2021-06-01 20:40:16 -04:00
Michael Lingelbach
3fe7a04704
Merge pull request #14698 from jose-elias-alvarez/omnifunc-insert-check
fix(lsp): check mode in omnifunc callback
2021-06-01 10:13:17 -07: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
Björn Linse
2faa1c361b
Merge pull request #14659 from seandewar/api-win-buf-noautocmd
api(nvim_open_win): Enable BufEnter autocmds by default like ordinary window; add "noautocmd" option to block BufEnter.
2021-06-01 10:05:58 +02:00
Folke Lemaitre
0ece34cbb8
fix(lsp): properly handle border character list without highlight groups. Fixes #14691 2021-06-01 09:36:29 +02:00
James McCoy
efef508ec6
ci(gha): New workflow to regen API docs on pushes to release branches
Upon pushing updates to files which may contain API documentation, the
workflow will regenerate the docs and, if there are relevant changes,
create a PR targeting the source branch.

[skip ci]
2021-05-31 22:52:44 -04:00
Sean Dewar
db6523cd13
api(parse_float_config): use api_object_to_bool() 2021-06-01 03:05:04 +01:00
Sean Dewar
802f8429d5
api(nvim_open_win): add "noautocmd" option
This option, when set, stops nvim_open_win() from potentially firing
buffer-related autocmd events
(BufEnter, BufLeave and BufWinEnter in the case of nvim_open_win()).
2021-06-01 03:05:04 +01:00
Jan Edmund Lazo
27c616d688
Merge pull request #14685 from janlazo/vim-8.2.2911
vim-patch:8.1.2400,8.2.{2911,2914.2916}
2021-05-31 22:01:09 -04:00
Jan Edmund Lazo
e8f0ff1d48
Merge pull request #14531 from janlazo/revert-noblock
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
2021-05-31 21:57:44 -04:00