Commit Graph
15806 Commits
Author SHA1 Message Date
BK1603 22828f59bb Added healt check for tmux focus events 2020-07-02 04:40:35 +05:30
James McCoy 225f0bcd98 Merge pull request #12133 from bradking/syntax-fold 2020-06-24 13:09:30 -04:00
Jan Edmund Lazo 352831229f vim-patch:8.2.1044: not all systemd file types are recognized (#12527)
Problem:    Not all systemd file types are recognized.
Solution:   Match several more files. (Guido Cella, closes vim/vim#6319)
https://github.com/vim/vim/commit/ef6d86c173becdf82b7a9a1329342c9368340def
2020-06-24 10:18:06 +02:00
Brad King 357c16515c vim-patch:8.2.0865 syntax: Add command to control how foldlevel is computed
Problem:    Syntax foldlevel is taken from the start of the line.
Solution:   Add ":syn foldlevel" to be able to use the minimal foldlevel in the line.
https://github.com/vim/vim/commit/e35a52aee718c881bdfa69a47a1068df6ab6c60a

With `foldmethod=syntax` the foldlevel of a line is computed based
on syntax items on the line.  Previously we always used the level
of the syntax item containing the start of the line.  This works
well in cases such as:

    if (...) {
      ...
    }
    else if (...) {
      ...
    }
    else {
      ...
    }

which folds like this:

    +---  3 lines: if (...) {---------------------------
    +---  3 lines: else if (...) {----------------------
    +---  3 lines: else {-------------------------------

However, the code:

    if (...) {
      ...
    } else if (...) {
      ...
    } else {
      ...
    }

folds like this:

    +---  7 lines: if (...) {---------------------------

We can make the latter case fold like this:

    +---  2 lines: if (...) {---------------------------
    +---  2 lines: } else if (...) {--------------------
    +---  3 lines: } else {-----------------------------

by choosing on each line the lowest fold level that is followed
by a higher fold level.

Add a syntax command

    :syntax foldlevel [start | minimum]

to choose between these two methods of computing the foldlevel of
a line.
2020-06-23 19:07:33 -04:00
Jan Edmund Lazo 30b02a1bee vim-patch:8.2.1041: test summary is missing executed count (#12519)
Problem:    Test summary is missing executed count.
Solution:   Adjust pattern used for counting.
https://github.com/vim/vim/commit/7eaafe65eef88493c789b160914c8e2e8e42d4a7
2020-06-23 17:55:56 +02:00
francisco souzaandfrancisco souza 2f6d1d3c88 lsp: when apply text edits, set buflisted on buffers (#12489)
The client creates buffers on the fly to be able to apply text edits on
files that weren't previously open, which is great, but it uses the
bufadd() function, which creates unlisted buffers and can lead to a
weird experience in the text editor. Setting the buffer to buflisted
fixes this.

Closes #12488.

Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
2020-06-23 17:50:37 +02:00
Brad King ee3605aed4 syntax: Factor out duplicate E390 strings 2020-06-23 09:20:17 -04:00
Brad King ae5651942e syntax: factor out helper to compute the syntax-based foldlevel 2020-06-23 09:20:17 -04:00
Ghjuvan Lacambre 721f69c4af terminal: preserve mode when using <Cmd>wincmd in terminal mode (#12254) 2020-06-22 23:22:58 +02:00
erw7 1619410a05 main.c: fix hang issue with recoverymode (#12496)
In the case of recoverymode, the headlessmode was true, causing the UI
to hang without starting. Fix this problem by setting headlessmode to
true for List swap files only.
2020-06-22 23:04:34 +02:00
Matthieu Coudron 8f30753aa1 Merge pull request #12455 from janlazo/vim-8.0.1554
[RDY]vim-patch:8.0.1554,8.1.1977,8.2.{927,930,932,938,954,963,964,966,980,983,998,999}
2020-06-22 22:40:33 +02:00
erw7 21453e8f09 eval: fix assertion failure in garbage collection (#12436)
* eval: fix assertion failure in garbage collection

fixes #12387, #12430

Lists with CopyID+1 linked only from previous_funccal may be removed in
the garbage collection. Therefore, the terms of the assertions are not
correct. This can be confirmed by the following (The l:x with CopyID+1 of
the first function call needs to be removed by garbage collection):

func! s:f()
  let l:x = [1]
  let g:x = l:
endfunc

for _ in range(2)
  call s:f()
endfor
call garbagecollect()
" press any key

* test: add test for #12387, #12430
2020-06-22 10:17:20 -04:00
Marvim the Paranoid Android 4496628c18 version.c: update [ci skip] (#12391) 2020-06-21 21:32:56 +02:00
John Gehrig 5f0a1b04c1 neovim-qt: bump to version 0.2.16 (#12508) 2020-06-19 13:47:55 +02:00
Jan Edmund Lazo b198225361 vim-patch:8.2.0999: moving to next sentence gets stuck on quote
Problem:    Moving to next sentence gets stuck on quote.
Solution:   When moving to the next sentence doesn't result in moving, advance
            a character and try again. (closes vim/vim#6291)
https://github.com/vim/vim/commit/2f03e5a0a9cfaabb01c57dd3348a05e86c26623c
2020-06-18 20:35:06 -04:00
Jan Edmund Lazo 749429693d vim-patch:8.2.0998: not all tag code is tested
Problem:    Not all tag code is tested.
Solution:   Add a few more test cases. (Yegappan Lakshmanan, closes vim/vim#6284)
https://github.com/vim/vim/commit/3d9207ad2fc98b4f92f77b5a3d52a3a4d25b9561
2020-06-18 18:01:44 -04:00
Jan Edmund Lazo b4e4c2ad95 vim-patch:8.2.0983: SConstruct file type not recognized
Problem:    SConstruct file type not recognized.
Solution:   Use python for SConstruct files. (Roland Hieber)
https://github.com/vim/vim/commit/ad72350360d1a68d251da62a6e8610950926278c
2020-06-18 18:01:44 -04:00
Jan Edmund Lazo 954aed886e vim-patch:8.2.0980: raku file extension not recognized
Problem:    Raku file extension not recognized. (Steven Penny)
Solution:   Recognize .raku and .rakumod. (closes vim/vim#6255)
https://github.com/vim/vim/commit/a65d8b5bb9e9267c6e4500c67d26c839a64f30eb
2020-06-18 18:01:44 -04:00
Jan Edmund Lazo e681a317fe vim-patch:8.2.0964: TextYankPost does not provide info about Visual selection
Problem:    TextYankPost does not provide info about Visual selection.
Solution:   Add the 'visual' key in v:event. (closes vim/vim#6249)
https://github.com/vim/vim/commit/37d1673ce007c46ec2338f3236ae1b7b0324bd25
2020-06-18 18:01:43 -04:00
Jan Edmund Lazo 833a5d16a2 vim-patch:8.2.0963: number increment/decrement does not work with 'virtualedit'
Problem:    Number increment/decrement does not work with 'virtualedit'.
Solution:   Handle coladd changing. (Christian Brabandt, closes vim/vim#6240,
            closes vim/vim#923)
https://github.com/vim/vim/commit/6c6be9e88d72a60ee279ccad73d018c534b71d66
2020-06-18 18:01:43 -04:00
Jan Edmund Lazo 3c9ec83395 vim-patch:8.2.0966: 'shortmess' flag "n" not used in two places
Problem:    'shortmess' flag "n" not used in two places.
Solution:   Make use of the "n" flag consistent. (Nick Jensen, closes vim/vim#6245,
            closes vim/vim#6244)
https://github.com/vim/vim/commit/722e505d1a55dfde5ab62241d10da91d2e10c3c1
2020-06-18 18:01:43 -04:00
Jan Edmund Lazo abadb687fb vim-patch:8.2.0954: not all desktop files are recognized
Problem:    Not all desktop files are recognized.
Solution:   Add the *.directory pattern. (Eisuke Kawashima, closes vim/vim#3317)
https://github.com/vim/vim/commit/f1f0ff9557353c9a452aac8540411a88cf2da47c
2020-06-18 18:01:43 -04:00
Jan Edmund Lazo 44535d39e9 vim-patch:8.1.1977: terminal debugger plugin may hang
Problem:    Terminal debugger plugin may hang.
Solution:   Wait longer when still reading symbols.
https://github.com/vim/vim/commit/19c8fe1925f4f7ffa1cc46e64d8bb8b1665ac437
2020-06-18 18:01:43 -04:00
Jan Edmund Lazo 33985a3a15 vim-patch:8.2.0938: NFA regexp uses tolower ()to compare ignore-case
Problem:    NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs)
Solution:   Use utf_fold() when possible. (ref. neovim vim/vim#12456)
https://github.com/vim/vim/commit/59de417b904bbd204e313f015839317b577bd124
2020-06-18 18:01:42 -04:00
Jan Edmund Lazo b7cae2bca3 option: fix pvs/v547 2020-06-18 18:01:42 -04:00
Jan Edmund Lazo e34a7bca68 eval: fix pvs/v547 2020-06-18 18:01:42 -04:00
Jan Edmund Lazo ee4265285d vim-patch:8.2.0932: missspelling spelllang
Problem:    Missspelling spelllang.
Solution:   Add an "l". (Dominique Pelle)
https://github.com/vim/vim/commit/f154f3ab2c1eea67afc20140c580ad003752dc72
2020-06-18 18:01:42 -04:00
Jan Edmund Lazo 9d565c5ba3 vim-patch:8.2.0930: script filetype detection trips over env -S argument
Problem:    Script filetype detection trips over env -S argument.
Solution:   Remove "-S" and "--ignore-environment". (closes vim/vim#5013)
            Add tests.
https://github.com/vim/vim/commit/b5e18f29fac9253b0ccf1fde5e74bff72fa1ba60
2020-06-18 18:01:42 -04:00
Jan Edmund Lazo 150168b881 vim-patch:8.2.0927: some sshconfig and ssdhconfig files are not recognized
Problem:    Some sshconfig and ssdhconfig files are not recognized.
Solution:   Add filetype patterns.
https://github.com/vim/vim/commit/da84ac2a6f467d0b9eddcc8709433cda75d16a41
2020-06-18 18:01:41 -04:00
Jan Edmund Lazo a5bde56b37 vim-patch:8.0.1554: custom plugins loaded with --clean
Problem:    Custom plugins loaded with --clean.
Solution:   Do not include the home directory in 'runtimepath'.
https://github.com/vim/vim/commit/072687032683b1994d25a114893d9a6f8bc36612
2020-06-18 18:01:41 -04:00
francisco souzaandfrancisco souza 70d4b31b83 lsp: Add new highlight groups used in show_line_diagnostics (#12473)
* lsp: support custom hl groups in show_line_diagnostics

Closes #12472.

* runtime: add docs for the new lsp highlight groups

Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
2020-06-18 08:04:49 -04:00
TJ DeVries 25aa2969f2 Merge pull request #12497 from leun4m/patch/tex-runtime
Apply several upstream changes to text-runtime
2020-06-18 07:31:24 -04:00
Manuel Krebs 8498c40fcf tex.vim: patch runtime/indent to 388a5d4f20b4
vim/vim@388a5d4f20
2020-06-17 12:52:39 +02:00
Manuel Krebs ad42ac4618 tex.vim: patch runtime to 65e0d77a66b7
vim/vim@65e0d77a66
2020-06-16 19:57:41 +02:00
Manuel Krebs db756fca52 tex.vim: patch runtime to 388a5d4f20b4
vim/vim@388a5d4f20
2020-06-16 19:56:14 +02:00
Manuel Krebs 78f37f6a35 tex.vim: patch runtime to 1d9215b9aaa1
vim/vim@1d9215b9aa
2020-06-16 19:53:35 +02:00
Hirokazu Hata e628a05b51 Merge pull request #12342 from h-michael/fix-doc 2020-06-15 18:08:34 +09:00
Hirokazu Hata 52cd8bf507 doc: fix vim.api.nvim_buf_attach callback arguments 2020-06-15 12:30:13 +09:00
Hirokazu Hata 6613ab6bca Merge pull request #12469 from h-michael/request
lsp: even if contents before change is 0 byte, request to server
2020-06-15 11:11:42 +09:00
Kevin Fleming 8daefe2f04 Fix highlight group names in LSP documentation (#12427)
LspDiagnosticInformation -> LspDiagnosticsInformation
LspDiagnosticInformationSign -> LspDiagnosticsInformationSign
LspDiagnosticHint -> LspDiagnosticsHint
LspDiagnosticHintSign -> LspDiagnosticsHintSign
2020-06-14 15:25:39 -04:00
Andreas Johansson 44fe8828f0 lsp: Fix text edits with the same start position (#12434)
According to the LSP spec[1], multiple edits can have the same starting
position, and if that is the case, they should be applied in the order
as they come in the array.

The implementation uses a reverse sort to not interfere with non applied
edits, but failed to take into account the spec.

[1] https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#textedit
2020-06-14 15:23:16 -04:00
Dheepak Krishnamurthy a0a84fc9e0 lsp: Add BufLeave to close_preview_autocmd function call (#12477)
else popup window remains open when switching buffer.
2020-06-12 20:38:33 +02:00
David LukesandChristian Clason 6d1404faf0 test: Fix ignored LSP tests (#12470)
* Fix ignored LSP tests

* Restructure _make_floating_popup_size tests

Co-authored-by: Christian Clason <christian.clason@uni-due.de>

Co-authored-by: Christian Clason <christian.clason@uni-due.de>
2020-06-11 20:34:34 -04:00
Stephan Seitz b751d16cad lsp: Fix #12449 textDocumentSync.save can be boolean. Access textDocumentSync.save.includeText only if table. (#12450) 2020-06-11 15:47:03 -04:00
Hirokazu Hata e39ec50d73 lsp: even if contents before change is 0 byte, request to server
fix: https://github.com/neovim/neovim/issues/12414
2020-06-11 13:09:05 +09:00
Hirokazu Hata e78658348d Merge pull request #12467 from h-michael/issue-template
issue template: fix label syntax for lsp bug report
2020-06-11 09:42:35 +09:00
Hirokazu Hata d7f2318ada issue template: fix label syntax for lsp bug report 2020-06-11 08:18:12 +09:00
Hirokazu Hata bb946fb475 Merge pull request #12461 from h-michael/issue-template 2020-06-11 08:08:32 +09:00
Hirokazu Hata 9aba7f122c add GitHub issue template for lsp 2020-06-11 06:12:37 +09:00
James McCoy dcd6cf5f34 Merge pull request #11819 from erw7/fix-dot-net-stdin
[RDY] win: make UV_OVERLAPPED_PIPE optional
2020-06-10 13:24:45 -04:00