Commit Graph

19655 Commits

Author SHA1 Message Date
be368a6f74 Merge pull request #17647 from neovim/backport-16851-to-release-0.6
[Backport release-0.6] vim-patch:8.2.3952: first line not redrawn when adding lines to an empty buffer
2022-03-08 12:11:07 +08:00
c624f260d3 vim-patch:8.2.3952: first line not redrawn when adding lines to an empty buffer
Problem:    First line not redrawn when adding lines to an empty buffer.
Solution:   Adjust the argument to appended_lines(). (closes vim/vim#9439,
            closes vim/vim#9438)
1fa3de1ce8
(cherry picked from commit ba7b30080f)
2022-03-08 03:44:16 +00:00
6e31a3a51e Merge pull request #17646 from neovim/backport-17631-to-release-0.6
[Backport release-0.6] vim-patch:8.2.4520: using wrong highlight for cursor line number
2022-03-08 11:21:37 +08:00
57180fcb39 test: add a Lua screen test for CursorLineNr in diff mode
Remove a useless test added in #14190

(cherry picked from commit 2adc24b18b)
2022-03-08 02:54:30 +00:00
bacc0b9c0b vim-patch:8.2.4520: using wrong highlight for cursor line number
Problem:    Using wrong highlight for cursor line number.
Solution:   Take filler lines into account when using CursorLineNr.
            (closes vim/vim#9897)
127969cf98
(cherry picked from commit ec3f93ff88)
2022-03-08 02:54:30 +00:00
b535db77d8 Merge pull request #17634 from neovim/backport-16841-to-release-0.6
[Backport release-0.6] vim-patch:8.1.2073: when editing a buffer 'colorcolumn' may not work
2022-03-07 11:55:22 +08:00
74a949b859 test: convert some colorcolumn tests to Lua screen tests
(cherry picked from commit 4ca522fd02)
2022-03-07 03:27:58 +00:00
0986b8be4f vim-patch:8.1.2073: when editing a buffer 'colorcolumn' may not work
Problem:    When editing a buffer 'colorcolumn' may not work.
Solution:   Set the buffer before copying option values. Call
            check_colorcolumn() after copying window options.
010ee9657a
(cherry picked from commit 612696bedc)
2022-03-07 03:27:58 +00:00
332cc6424a Merge pull request #17528 from neovim/backport-17479-to-release-0.6
[Backport release-0.6] docs: update explanation of Y to reflect new defaults
2022-02-26 21:17:06 +08:00
3a826ceed3 docs: update explanation of Y to reflect new defaults
Closes https://github.com/neovim/neovim/issues/17435

(cherry picked from commit 1630ec742d)
2022-02-26 12:52:17 +00:00
d8561c078c Merge pull request #17513 from neovim/backport-16757-to-release-0.6
[Backport release-0.6] vim-patch:8.2.3873
2022-02-24 10:12:18 +08:00
bee7b6167d vim-patch:8.2.3873: go.mod files are not recognized
Problem:    go.mod files are not recognized.
Solution:   Check for the file name. (closes vim/vim#9380)
82b3b4c6cf
(cherry picked from commit 2f813d6c3e)
2022-02-24 02:11:28 +00:00
786272d00b Merge pull request #17483 from neovim/backport-17480-to-release-0.6
[Backport release-0.6] vim-patch:8.2.4427: getchar() may return modifiers if no character is available
2022-02-21 11:17:29 +08:00
71294e6430 vim-patch:8.2.4427: getchar() may return modifiers if no character is available
Problem:    getchar() may return modifiers if no character is available.
Solution:   Do not process modifiers when there is no character. (closes vim/vim#9806)
ad6c45f625
(cherry picked from commit 3828fb7ea4)
2022-02-21 02:54:57 +00:00
a375053492 Merge pull request #17391 from neovim/backport-17150-to-release-0.6
[Backport release-0.6] vim-patch:8.2.4166: undo synced when switching buffer in another window
2022-02-13 18:47:07 +08:00
0ad89969e1 vim-patch:8.2.4166: undo synced when switching buffer in another window
Problem:    Undo synced when switching buffer in another window.
Solution:   Do not sync undo when not needed. (closes vim/vim#9575)
e615db0604
(cherry picked from commit 2fa1b4cbff)
2022-02-13 10:22:51 +00:00
c91c6381ee Merge pull request #17384 from neovim/backport-17192-to-release-0.6
[Backport release-0.6] fix: set RedrawingDisabled before entering aucmd_win
2022-02-12 18:44:03 -05:00
6d2e0ab621 fix: set RedrawingDisabled before entering aucmd_win
(cherry picked from commit dd21e21e97)
2022-02-12 18:03:08 +00:00
145dd051c3 Merge pull request #17313 from neovim/backport-17277-to-release-0.6
[Backport release-0.6] build(win): package the debug symbols (PDB file) along with nvim.exe
2022-02-06 09:37:16 -05:00
ba9b424154 Merge pull request #17314 from jamessan/backport-17310-to-release-0.6
[Backport release-0.6] ci(commitlint): use lintcommit.lua from main repo
2022-02-06 09:36:20 -05:00
8f3621c4b7 ci(commitlint): use lintcommit.lua from main repo
[skip ci]
(cherry picked from commit 707cc1a167)
2022-02-06 09:35:41 -05:00
37b78620db build(win): don't try to package a PDB if not building with MSVC…
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
(cherry picked from commit 5fe6bbae2d)
2022-02-06 14:32:45 +00:00
74cbddf6e1 build(win): package the debug symbols (PDB file) along with nvim.exe
(cherry picked from commit f70d1442be)
2022-02-06 14:32:45 +00:00
ca73525485 Merge pull request #17294 from neovim/backport-16788-to-release-0.6
[Backport release-0.6] fix(msgpack#strptime): use calendar.timegm to get seconds since epoch
2022-02-05 10:08:50 +08:00
1af25791d5 fix(msgpack#strptime): use calendar.timegm to get seconds since epoch
datetime.datetime.timestamp does not exist on Windows and
datetime.datetiem.strftime('%s') is not supported, since '%s' is a POSIX
format.  Instead, use the recommended `calendar.timegm(obj.utctimetuple())`.

(cherry picked from commit fb14e2a8d6)
2022-02-05 01:51:32 +00:00
6c6ce6894a Merge pull request #17292 from neovim/backport-16559-to-release-0.6
[Backport release-0.6] fix(screen): do not draw filler lines post eof if already at last row
2022-02-05 08:46:19 +08:00
40caaeb041 Merge pull request #17293 from neovim/backport-17204-to-release-0.6
[Backport release-0.6] ci(windows): use the provided python from github actions
2022-02-05 08:45:43 +08:00
a92baa095a ci(windows): use the provided python from github actions
This will prevent future errors whenever support for a specific python
version we rely on is removed.

(cherry picked from commit 16d64796f4)
2022-02-05 00:27:58 +00:00
cee2de23ab fix(screen): do not draw filler lines post eof if already at last row
(cherry picked from commit b326bf5f41)
2022-02-05 00:00:25 +00:00
b25b41997a Merge pull request #17291 from neovim/backport-16736-to-release-0.6
[Backport release-0.6] ci: remove unused "squash typo" workflow
2022-02-05 07:57:12 +08:00
d89523ba62 ci: remove unused "squash typo" workflow
(cherry picked from commit 89a844a9c7)
2022-02-04 23:10:17 +00:00
cc2e16f4e0 Merge pull request #17067 from neovim/backport-17046-to-release-0.6
[Backport release-0.6] fix(keywordprg): retain terminal buffer after K
2022-01-17 13:41:49 -05:00
33284615fe Merge pull request #16916 from neovim/backport-16911-to-release-0.6
[Backport release-0.6] test: make test for #14040 more stable
2022-01-17 13:41:25 -05:00
239e549d23 Merge pull request #16907 from neovim/backport-16906-to-release-0.6
[Backport release-0.6] fix(lsp): explicitly pass bufnr in didSave handler
2022-01-17 13:41:06 -05:00
f0101d696c Merge pull request #16896 from neovim/backport-16886-to-release-0.6
[Backport release-0.6] docs(usr_05): fix section numbers
2022-01-17 13:40:45 -05:00
315f8b92d0 Merge pull request #16483 from neovim/marvim/api-doc-update/release-0.6
docs: regenerate
2022-01-17 13:40:04 -05:00
f1ab73cf6c fix(keywordprg): retain terminal buffer after K
(cherry picked from commit ef7425fe0c)
2022-01-13 05:05:05 +00:00
a6a6f7ba16 docs: regenerate 2022-01-09 17:43:35 +00:00
f365e68293 feat(lua): add notify_once() (#17010)
Like vim.notify(), but only displays the notification once.

This function prints a warning message to the user only once per Nvim
session. This is useful for things we want the user to see without being
overwhelmed with warning messages (for example, the deprecation messages
in LSP diagnostics).
2022-01-09 10:42:30 -07:00
11dafcaf05 fix(runtime): check markdownError before syn-clear (#17009)
Avoids `E28: No such highlight group name: markdownError` when using a
foreign markdown syntax.
2022-01-09 10:25:04 -07:00
dd0d4fc666 fix(lsp): only send command and args in executeCommand (#17002)
(cherry picked from commit 2045479416)

Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
2022-01-08 11:25:44 -08:00
e44f88bbe7 fix(lsp): resolve bufnr for get_lines (#16997)
Closes https://github.com/neovim/neovim/issues/16985

* get_lines checks if buf_loaded using bufnr 0, which is
  typically used as a sentinel value, but here must be resolved
  to the true bufnr

(cherry picked from commit 5ebb1951bc)

Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
2022-01-08 13:31:39 +01:00
5901b4c624 test: make test for #14040 more stable
(cherry picked from commit 1d4f51553d)
2022-01-04 16:27:16 +00:00
01cb4d8846 fix(lsp): explicitly pass bufnr in didSave handler
Addresses a regression introduced by the stricter type checking
in lua api functions from https://github.com/neovim/neovim/pull/16745

(cherry picked from commit 62ae12dc8c)
2022-01-04 02:03:49 +00:00
bdd92e46b3 docs(usr_05): fix section numbers
Other refs to 05.3 don't need to be updated as they refer to the simple mappings
section anyway. Seems they weren't updated when the defaults.vim section was
added as 05.3 instead.

(cherry picked from commit 11e64f26a5)
2022-01-03 13:56:44 +00:00
11f18a8adf Merge pull request #16888 from jamessan/backport-16853-to-release-0.6
[Backport release-0.6] ci: run lint only on master branch
2022-01-02 14:21:12 -05:00
ede410ae3d ci: run lint only on master branch
The list of known lint issues is only updated for the master branch, so
other branches report lots of false positive issues.
2022-01-02 14:11:42 -05:00
cebda91abb fix(lsp): always use target bufnr in location handler (#16880)
(cherry picked from commit ab8c22ab87)

Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
2022-01-02 09:42:50 -05:00
6177030e4a version bump 2021-12-31 18:04:21 +01:00
5b839ced69 NVIM 0.6.1 (2021-12-31)
Bug Fixes

  * api: allow nvim_buf_set_extmark to accept end_row key #16686 1b54344
  * diagnostic: assert that diagnostics have line number and column #16687 9dae939
  * diagnostic: clamp diagnostics on negative line numbers #16497 096f841
  * diagnostic: escape special chars in file names #16588 beac24d
  * diagnostic: respect "if_many" source option for virtual text #16697 060eeaa
  * diagnostic: set effective buffer number for DiagnosticChanged autocmd #16485 84784a8
  * diagnostic: set effective buffer number in autocmd (again) #16590 08ddfa9, closes #16474
  * lua: do not cast offset to char_u 93f1ec0
  * lsp: avoid attaching to unloaded buffers #16726 0088994
  * lsp: call config on_exit handler before context is cleared #16781 571609f
  * lsp: fix `nil`-index behavior for UTF-8 in `_str_*index_enc` methods #16785 03bd914
  * lsp: handle offset encoding #16783 7b60ec7
  * lsp: progress handlers should return vim.NIL on error #16476 fb11ef0
  * options: disallow empty 'fdc' and 'scl' #16776 37a00be
  * quickfix: avoid O(N^2) when filling from string typval #16663 aa0ddc6
  * screenpos, float: add top and left border adjustment 8f68548
  * terminal: fix resize crash with pending scrollback #16665 ae249d8
  * ui: close floating window on BufLeave event #16664 785bace
  * uri: change scheme pattern to not include the comma character #16798 0e96f7d

Features

  * lsp,diagnostic: open folds in jump-related functions #16784 ee9e342
  * lsp: add buf_detach_client #16741 ec101b9
  * lsp: use `vim.ui.select` for selecting lsp client #16782 14357c8
  * runtime: new checkhealth filetype #16708 09306f0
v0.6.1
2021-12-31 18:02:21 +01:00