Gregory Anders
3c74ba4acb
feat(diagnostic): add 'prefix' option to open_float ( #16321 )
...
The 'prefix' option accepts a function or a string that is used to add a
prefix string to each diagnostic displayed in the floating window.
2021-11-14 18:40:11 -07:00
Björn Linse
2f37ffb719
Merge pull request #16316 from bfredl/macroman
...
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 17:43:21 +01:00
Björn Linse
1450a6f753
refactor(macroman): get rid of MB_COPY_CHAR macro
...
clean up docs for MB_PTR_ADV and MB_PTR_BACK
2021-11-14 17:08:50 +01:00
Björn Linse
54ff21a153
refactor(macros): delete multibyte macros which just are aliases
2021-11-14 16:33:12 +01:00
James McCoy
ede00b29d1
Merge pull request #16317 from jamessan/remove-32bit-windows-ci
...
ci!: remove win32 builds/releases
2021-11-14 09:13:48 -05:00
James McCoy
7bd6f12b3e
ci!: remove win32 builds/releases
2021-11-14 08:51:39 -05:00
Björn Linse
27f8b04f17
Merge pull request #16315 from bfredl/multibytes
...
refactor(multibyte): eliminate mb_* aliases for utf_* functions
2021-11-14 13:44:18 +01:00
Mathias Fußenegger
ee3a58d42e
fix(lsp): ensure buffers are re-attached on rename ( #16266 )
...
If a LSP server sent a workspace edit containing a rename the buffers
file name changed without the server receiving a close notification for
the old buffer and without the client properly re-attaching on the new
file.
This affected `Move` code-actions in nvim-jdtls, but also
`vim.lsp.buf.rename` on a class level.
2021-11-14 12:55:16 +01:00
Björn Linse
71a4d275dc
refactor(multibyte): eliminate mb_char2len alias for utf_char2len
2021-11-14 12:49:12 +01:00
Björn Linse
0039ba04b0
refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len
2021-11-14 12:49:12 +01:00
Björn Linse
9f27e6cbe7
refactor(multibyte): eliminate mb_char2cells alias for utf_char2cells
2021-11-14 12:49:09 +01:00
Christian Clason
2ef9d2a663
chore: disable creating a blank issue
2021-11-11 19:41:37 +01:00
Daniel Steinberg
e8631cb8a6
fix(float): skip non-focusable windows for :windo ( #15378 )
2021-11-11 11:05:18 -07:00
Michael Lingelbach
9d6a475ced
fix(docs): add sync.lua to gen_vimdoc ( #16285 )
2021-11-11 07:23:52 -07:00
Björn Linse
5d653a1344
Merge pull request #16276 from zeertzjq/channel-closed-term-error
...
Fixes and tests for sending to terminal channel whose terminal has been deleted
2021-11-11 10:57:16 +01:00
Michael Lingelbach
0ecc58c277
fix(lsp): gracefully handle nil workspaceFolders ( #16284 )
...
* handle when workspaceFolder is nil in buf.list_workspace_folders and buf.add_workspace_folder
2021-11-11 01:15:59 -08:00
zeertzjq
8b5c32c8cd
test: add tests for freeing channel opened by termopen()
...
This indirectly covers #16264
2021-11-11 09:34:23 +08:00
zeertzjq
a502a7a731
fix(channel): fix channels opened by nvim_open_term() never being freed
2021-11-11 09:34:23 +08:00
zeertzjq
3b89fee246
fix(channel): throw error if sending to internal channel w/o terminal
...
Prevent SIGABRT when sending to a channel created by nvim_open_term()
after the associated terminal has been deleted.
2021-11-11 09:34:23 +08:00
zeertzjq
14def4d227
fix(terminal): free terminal if close_buffer() closes a closed terminal ( #16264 )
...
Use the (currently unused) 'destroy' field of the terminal struct as a
flag to indicate that the terminal's destruction is imminent (and
therefore it's close callback should not be called again).
Co-authored-by: Gregory Anders <greg@gpanders.com>
2021-11-10 15:28:55 -07:00
Michael Lingelbach
2ecf0a4c61
fix(lsp): rewrite incremental sync ( #16252 )
...
* use codeunits/points instead of byte ranges when applicable
* take into account different file formats when computing range and
sending text (dos, unix, and mac supported)
* add tests of incremental sync
2021-11-09 14:37:48 -08:00
Gregory Anders
953ae71fd3
feat(diagnostic): do not require namespace for hide() and show() ( #16261 )
...
Also fix a few other small bugs regarding saving and restoring extmarks.
In particular, now that the virtual text and underline handlers have
their own dedicated namespaces, they should be responsible for saving
and restoring their own extmarks. Also fix the wrong argument ordering
in the call to `clear_diagnostic_cache` in the `on_detach` callback.
2021-11-09 14:33:01 -07:00
Michael Lingelbach
8f31b218f9
fix(lsp): do not index nil client in progress ( #16262 )
2021-11-09 22:05:41 +01:00
dundargoc
4174244d8b
docs: update description for 'list' option ( #16254 )
...
Neovim has different defaults for 'list' compared to Vim which is why
the documentation needs to be updated.
2021-11-08 08:22:53 -07:00
Christian Clason
8cbe100fcc
vim-patch:partial 113cb513f76d ( #16260 )
...
Update runtime files
113cb513f7
skip doc/eval.txt
skip doc/insert.txt
skip doc/user_06.txt (needs 8.2.3562)
partial skip doc/syntax.txt (needs 8.2.3562)
2021-11-08 00:10:44 +01:00
Sebastian Lyng Johansen
16d4af6d2f
feat(ui): add vim.ui.input and use in lsp rename ( #15959 )
...
* vim.ui.input is an overridable function that prompts for user input
* take an opts table and the `on_confirm` callback, see `:help vim.ui.input` for more details
* defaults to a wrapper around vim.fn.input(opts)
* switches the built-in client's rename handler to use vim.ui.input by default
2021-11-07 07:13:53 -08:00
elianiva
b74916cfd2
fix(lsp): convert range to byte index before highlighting ( #16218 )
...
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com>
2021-11-06 15:05:52 -07:00
Björn Linse
77c54fc995
Merge pull request #16155 from zeertzjq/fix-redr-border-corruption
...
fix(float): fix potential heap corruption in win_redr_border
2021-11-06 22:32:28 +01:00
Gregory Anders
03b805aee6
feat(lua): enable stack traces in error output ( #16228 )
2021-11-06 08:26:10 -06:00
Matěj Cepl
2dc0af3a4f
vim-patch:8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scope
...
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope.
Solution: Make 'thesaurusfunc' global-local.
f4d8b76d30
2021-11-06 14:24:46 +01:00
Gregory Anders
1fdbd29dfa
fix(diagnostic): handle an unknown or missing client ( #16242 )
...
Sometimes plugins use pseudo-client IDs (e.g. nvim-lint or null-ls) in
order to hook into the LSP infrastructure without being a bona fide LSP
client. In these cases, get_client_by_id() will return nil since the
client ID given does not correspond to a real client recognized by the
LSP subsystem. When this happens, use "unknown" for the client name.
2021-11-05 10:10:27 -06:00
Björn Linse
c0ba315b54
Merge pull request #16241 from bfredl/disptick
...
fix(screen): make display_tick monotonic up to 2^64. fixes #16152
2021-11-05 11:19:46 +01:00
Björn Linse
9e88c9c12f
fix(screen): make display_tick monotonic up to 2^64. fixes #16152
...
18446744073709551616 screen redraws should be enough for everyone.
2021-11-05 10:43:19 +01:00
Jan Alexander Steffens
3ba800f153
fix(tui): extend smglr ignores to smglp and smgrp ( #16239 )
...
The latter were added for xterm by ncurses 6.3 and are similarly
affected.
Fixes https://github.com/neovim/neovim/issues/16238
2021-11-04 20:36:16 -06:00
zeertzjq
5ce35abae6
fix(input): never reinterpret unmapped ALT- chrods in Terminal mode ( #16222 )
2021-11-04 07:43:05 -06:00
Gregory Anders
fd347840ba
fix(diagnostic): fix option resolution in open_float ( #16229 )
2021-11-04 06:59:24 -06:00
James McCoy
f26b391317
Merge pull request #16221 from glacambre/fix_13187
...
fix: remove double slash in sysinit path
2021-11-03 18:24:24 -04:00
James McCoy
2481b18a53
Merge pull request #16055 from doubleloop/config_depends
2021-11-03 08:24:39 -04:00
glacambre
52efcefcc8
fix: remove double slash in sysinit path
...
Closes https://github.com/neovim/neovim/issues/13187 .
2021-11-03 07:47:40 +01:00
Michael Lingelbach
7899c4099b
docs(lsp): correct usage examples of formatexpr ( #16216 )
2021-11-02 17:02:04 -07:00
Christian Clason
487286b621
docs: mention replacement for deprecated vim.lsp.diagnostic.show_* ( #16211 )
2021-11-02 16:24:05 +01:00
James McCoy
ed2573b7e1
Merge pull request #16207 from jamessan/delete-release-tag
...
ci(release): delete nightly/stable tag so release recreates it
2021-11-02 07:36:33 -04:00
James McCoy
14716e4619
ci(release): delete nightly/stable tag so release recreates it
...
Even though the releaes itself gets deleted, if the tag is not, then
creating a new release just re-uses the same tag, even though we're
using “--target <sha>”.
[skip ci]
2021-11-02 07:34:55 -04:00
Björn Linse
29cec32f44
Merge pull request #16203 from bfredl/revision
...
fix(extmark): fix missing virt_lines when using id param of set_extmark
2021-11-01 23:50:19 +01:00
Björn Linse
995dbd2ca6
fix(extmark): fix missing virt_lines when using id param of set_extmark
2021-11-01 22:57:33 +01:00
James McCoy
b8eabb37b1
Merge pull request #16131 from jamessan/vim-8.1.0306
2021-11-01 11:27:42 -04:00
Javier Lopez
961cd83b3b
refactor(api/marks)!: add opts param for feature extensibility ( #16146 )
...
In the future we might want to extend the concept of named marks and
adding opts reduces the need of changing the function signature in the
furute.
2021-11-01 07:46:26 -06:00
Nghia Le Minh
fa97d34858
fix(lsp): pass the enriched ctx to the client-side command ( #16201 )
2021-11-01 14:29:50 +01:00
James McCoy
9e479ea05e
vim-patch:8.2.3561: cscope has a complicated way of giving an error message
...
Problem: Cscope has a complicated way of giving an error message.
Solution: Use semsg(). (James McCoy, closes vim/vim#9038 )
3c5904d2a5
2021-11-01 06:41:29 -04:00
James McCoy
502ff11663
vim-patch:8.1.0783: compiler warning for signed/unsigned
...
Problem: Compiler warning for signed/unsigned.
Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes vim/vim#3827 )
63c0ccd2b6
2021-11-01 06:41:29 -04:00