Tony Chen
aa6adacd77
Make sure window is still valid in the middle of calling :lopen ( #14240 )
...
Make sure that oldwin is not invalid after splitting
Revisit this when porting vim patch v8.1.0892 and related quickfix patches.
2021-03-29 08:19:59 -04:00
Jan Edmund Lazo
63c2a7af2d
Merge pull request #13851 from VVKot/vim-8.1.0105
...
vim-patch:8.1.{0105,0114,0116,0126,0138,0154,0479,0542,0936}
2021-03-28 13:40:34 -04:00
Björn Linse
6d4a922e07
Merge pull request #14091 from euclidianAce/euclidianAce/nvim_win_hide
...
api: add vim.api.nvim_win_hide
2021-03-28 19:07:56 +02:00
VVKot
6752ac4968
vim-patch:8.1.0105: all tab stops are the same
...
Problem: All tab stops are the same.
Solution: Add the variable tabstop feature. (Christian Brabandt,
closes vim/vim#2711 )
https://github.com/vim/vim/commit/04958cbaf25eea27eceedaa987adfb354ad5f7fd
2021-03-28 08:37:01 +01:00
Björn Linse
3000f6c56b
floats: handle interaction with popupmenu and border correctly
2021-03-25 09:06:09 +01:00
Björn Linse
1186f7dd96
Merge pull request #14191 from chentau/extmark_blockpaste
...
Extmarks: send correct buffer events on blockwise paste for nonuniform lines
2021-03-24 00:27:55 +01:00
chentau
7fbabbaa57
Extmarks: correct buffer events on blockwise paste
2021-03-23 14:06:57 -07:00
Björn Linse
ed20089877
Merge pull request #14194 from bfredl/provide_virt
...
memory error with ephemeral virt_text
2021-03-23 15:54:09 +01:00
Matthieu Coudron
a1a0bc618f
Merge pull request #14190 from teto/fix-cursorlinenr
...
fix CursorLineNr with diff
2021-03-23 14:01:57 +01:00
Björn Linse
06c191848b
decorations: memory error with ephemeral virt_text
2021-03-23 13:58:18 +01:00
Björn Linse
3e5efa50b6
Merge pull request #14193 from bfredl/msginit
...
screen: setup scrolling main screen when starting with display-=msgsep
2021-03-23 10:46:29 +01:00
Björn Linse
80e122ae5d
screen: setup scrolling main screen when starting with display-=msgsep
2021-03-23 09:34:36 +01:00
chentau
a92a8ef506
Correctly splice extmarks on tab with noexpandtab set
2021-03-22 20:26:25 -07:00
Matthieu Coudron
e0d0e46cf2
chore: add test for CursorLineNr with filler lines
2021-03-22 23:33:17 +01:00
Matthieu Coudron
f2e1709d49
fix: stop using CursorLineNr in front of fillers
...
filling lines in diff mode.
2021-03-22 23:33:17 +01:00
Björn Linse
243820ebd0
floats: add borders (MS-DOS MODE)
2021-03-22 23:18:40 +01:00
Jan Edmund Lazo
dc8da7ba40
Merge pull request #14060 from andymass/vim-8.2.1703
...
[RFC] vim-patch:8.2.{1693,1703,1705}
2021-03-20 18:08:16 -04:00
Andy K. Massimino
79575cfe8a
Fix a failing test (highlight_spec.lua)
2021-03-20 15:56:52 -04:00
Mathias Fussenegger
84213b5b9a
lsp: Add support for delete workspaceEdit resource operation
2021-03-18 19:53:43 +01:00
Mathias Fussenegger
191afb42be
lsp: Add support for create workspaceEdit resource operation
2021-03-18 19:53:42 +01:00
Mathias Fussenegger
5e401b693b
lsp: Add support for file rename via workspaceEdit
2021-03-18 19:53:14 +01:00
Björn Linse
bb6d2c9b7c
api: destabilize nvim_set_hl_ns
...
The sematics and signature of this API is going to change, but we
don't wanna delay 0.5 for it. Mark API as unstable for now.
2021-03-15 09:58:39 +01:00
Jan Edmund Lazo
9e4c1fa073
vim-patch:8.2.2601: memory usage test often fails on FreeBSD
...
Problem: Memory usage test often fails on FreeBSD.
Solution: Increase multiplier for upper limit.
https://github.com/vim/vim/commit/6bce5856b5fc4d4eb8f75298382251ecda659ac3
2021-03-14 11:54:36 -04:00
Björn Linse
3c8583e43b
Merge pull request #14020 from chentau/float_resize
...
Update lines after shrinking floating window
2021-03-14 08:35:48 +01:00
tk-shirasaka
314b222c25
Fix click on foldcolumn with vsplit ( #14127 )
2021-03-13 23:12:18 +01:00
Jan Edmund Lazo
a1cdb6ca6a
vim-patch:8.2.2595: setting 'winminheight' may cause 'lines' to change
...
Problem: Setting 'winminheight' may cause 'lines' to change.
Solution: Also take minimal height of other tabpages into account. (vim/vim#7899 )
https://github.com/vim/vim/commit/9e813b3dea94a8952b732a224fa31beba6e85973
2021-03-13 10:16:23 -05:00
Björn Linse
ed08936987
api: allow open non-current buffer as terminal (+ xmas bonus)
...
vim.api.nvim_chan_send(vim.api.nvim_open_term(0), io.open("/path/to/smile.cat", "r"):read("*a"))
2021-03-12 14:44:47 +01:00
chentau
8fe19d9d89
screen: make ui_compositor aware of the intended size of a float
2021-03-11 12:27:29 -08:00
Josa Gesell
d1074e0077
lsp: Resolve codeLense server capabilities ( #14056 )
2021-03-10 17:02:09 -05:00
Björn Linse
7844ca2e05
Merge pull request #14065 from bfredl/overlaymode
...
more virt_text display options
2021-03-10 13:28:07 +01:00
Björn Linse
425bc438ae
decorations: add additional styling of virt_text overlays
2021-03-10 12:11:05 +01:00
Michael Lingelbach
0869cbd55c
Merge pull request #14079 from mjlbach/incremental_sync
...
lsp: add incremental text synchronization
2021-03-09 21:03:31 -08:00
Corey Williamson
3a342f9cc9
api: add vim.api.nvim_win_hide
2021-03-09 22:51:56 -06:00
Michael Lingelbach
e4e51c69d7
lsp: add incremental text synchronization
...
* Implementation derived from and validated by vim-lsc authored by Nate
Bosch
2021-03-09 20:14:08 -08:00
Björn Linse
e355cc8cc5
Merge pull request #13875 from smolck/vim_fn_error_on_api
...
vim.fn: throw error when trying to use API function
2021-03-09 23:12:23 +01:00
smolck
d1899bb5f4
use pcall_err
2021-03-09 15:23:42 -06:00
Björn Linse
f901149de4
state: throttle batched event processing when input is available
...
before, calling vim.schedule() from inside an event would execute
the scheduled callback immediately after this event without
checking for user input in between. Break event processing
whenever user input or an interrupt is available.
2021-03-08 16:08:58 +01:00
tk-shirasaka
f2fc44d50b
[RDY] Fix click on foldcolumn if it has tabline ( #13982 )
...
* Fix click on foldcolumn if it has tabline
* Fixes to correctly determine if tablie was clicked when multigrid is enabled
* Separate foldcolumn checks into functions
* Add test case for click on foldcolumn with split window
* Fix foldcolumn click used nvim_input() on multigrid enabled
2021-03-04 13:54:22 +01:00
Björn Linse
6995fad260
Merge pull request #13973 from chentau/on_bytes_undofile
...
New versions of neovim will not read undofiles written by nvim before this merge (there will be an error message about incopmatible version). Nvim 0.4 (or an master up to bda12927be ) can be used to recover older undofiles, so if you worried about unsaved changes lurking around in undofiles it would make sense to keep such version around somewhere to recover them.
This is a necessary change to keep tree-sitter and plugins dependent on byte-level buffer change events fully working with undo states from a undofile. If there is a clear demand we might implement reading of the old format. Such recovered buffers will not be be fully functional with plugins relying on buffer updates or tree-sitter, however.
2021-03-03 09:45:06 +01:00
chentau
f42e932df4
Extmarks: Save extmark undo information to undofile.
2021-03-02 12:45:54 -08:00
Jan Edmund Lazo
f32acc70e8
vim-patch:8.2.2236: 'scroll' option can change when setting the statusline
...
Problem: 'scroll' option can change when setting the statusline or tabline
but the option context is not updated.
Solution: Update the script context when the scroll option is changed as a
side effect. (Christian Brabandt, closes vim/vim#7533 )
https://github.com/vim/vim/commit/746670604a60cb0356b56c112ffb6d297c679099
2021-03-02 00:35:52 -05:00
Jan Edmund Lazo
e50875b3e3
vim-patch:8.2.2560: setting 'winminheigt' does not take tabline into account
...
Problem: Setting 'winminheigt' does not take tabline into account.
Solution: Subtract the tabline from the available height. (closes vim/vim#7899 )
https://github.com/vim/vim/commit/39d4cab494248131b6fb07aba633aa4da7871a57
N/A patches for version.c:
vim-patch:8.1.0680: not easy to see what features are unavailable
Problem: Not easy to see what features are unavailable.
Solution: Highlight disabled features in the :version output. (Nazri Ramliy,
closes vim/vim#3756 )
https://github.com/vim/vim/commit/c85ffc9daba6f66d5958ae80249d26f7f81bfced
vim-patch:8.2.2196: :version output has extra spaces in compile and link command
Problem: :version output has extra spaces in compile and link command.
Solution: Adjust QUOTESED. (closes vim/vim#7505 )
https://github.com/vim/vim/commit/abcbb0e9ad43fc25077e1681528e72ddcbeed300
vim-patch:8.2.2551: MS-Windows: colors test file is not installed
Problem: MS-Windows: colors test file is not installed.
Solution: Also copy runtime/colors/tools. (Ken Takata, closes vim/vim#7902 )
https://github.com/vim/vim/commit/d0bce504ec52def729fffa35c8896979af348d32
vim-patch:8.2.2559: MS-Windows: guifont test fails on Windows XP
Problem: MS-Windows: guifont test fails on Windows XP.
Solution: Check windowsversion().
https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a
2021-03-01 23:40:39 -05:00
Mathias Fussenegger
eff7666163
LSP: Resolve text_document_save capability according to spec
...
Fixes https://github.com/neovim/neovim/issues/13989
See https://github.com/microsoft/language-server-protocol/issues/288
2021-02-25 10:08:14 +01:00
Matthieu Coudron
9d5f842807
lsp: remove deprecated references to 'callbacks' ( #13945 )
...
vim.lsp.callbacks was deprecated a few months ago. This is a cleanup before the release.
Use vim.lsp.handlers instead.
2021-02-23 00:02:51 +01:00
Björn Linse
7bcac75f30
Merge pull request #13952 from bfredl/overlay
...
decorations: allow virt_text overlay at any column
2021-02-22 10:17:44 +01:00
Björn Linse
4781333a7a
decorations: allow virt_text overlay at any column
2021-02-22 09:40:06 +01:00
Mathias Fußenegger
1caf58578c
lsp: Fix text edits operating on the last line of a document ( #13677 )
...
`lines` can be empty, in which case `#lines[#lines]` failed with an
error:
lsp/util.lua:214: attempt to get length of a nil value
2021-02-19 22:20:42 -05:00
Michael Lingelbach
b2fcfc65b7
lsp: client stop cleanups ( #13877 )
...
* lsp: client stop cleanups
* Add diagnostic clearing to client.stop() method used by nvim-lspconfig
* Clear diagnostic cache to prevent stale diagnostics on client restart
* lsp: Add test for vim.lsp.diagnostic.reset
2021-02-19 22:05:49 -05:00
Vikram Pal
4d5dbea4f4
[RFC] ":source" sources from current buffer if filename is omitted ( #11444 )
...
Fix https://github.com/neovim/neovim/issues/8722
2021-02-18 01:25:51 -05:00
Björn Linse
772421f6b1
Merge pull request #13692 from mjlbach/fix_cursor_respect_current_line
...
fix_cursor: do not change line number when edit will not impact cursor row
2021-02-16 18:32:38 +01:00