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
James McCoy
e6ff154be6
vim-patch:8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
32526b3c18
2021-11-01 06:41:29 -04:00
James McCoy
efa924f66b
vim-patch:8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
vim/vim#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
f9e3e09fdc
2021-11-01 06:41:28 -04:00
James McCoy
684640f551
vim-patch:8.1.0306: plural messages are not translated properly
...
Problem: Plural messages are not translated properly.
Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
da6e8919e7
2021-11-01 06:40:00 -04:00
James McCoy
7f4b7320f6
Merge pull request #16198 from jamessan/limit-ci-branches
...
ci: limit CI checks to the main dev branches
2021-11-01 06:37:37 -04:00
Michael Lingelbach
519d8deb08
feat(lsp): add per-client commands ( #16101 )
2021-11-01 03:14:59 -07:00
Zachary Churchill
7ae86c1d4c
feat(ui): add opt.kind
to vim.ui.select
( #15838 )
...
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2021-10-31 17:15:09 -07:00
James McCoy
ea2ce90cc6
ci: limit CI checks to the main dev branches
...
Now that we have various GH actions creating branches in the main repo,
using the generic '**' pattern for the CI workflow is just wasting CI
time and leading to more queued jobs.
[skip ci]
2021-10-31 20:05:52 -04:00
dundargoc
a68faed02d
refactor: saner options for uncrustify #16196
...
* refactor: general good option changes
sp_deref = remove
sp_not = remove
sp_inv = remove
sp_inside_paren_cast = remove
mod_remove_duplicate_include = true
sp_after_semi = add
sp_after_semi_for = force
sp_sizeof_paren = remove
nl_return_expr = remove
nl_else_brace = remove
nl_else_if = remove
* refactor: mod_remove_extra_semicolon = true
* refactor: nl_max = 3
* refactor: sp_bool = force
* refactor: sp_compare = force
* refactor: sp_inside_paren = remove
* refactor: sp_paren_paren = remove
* refactor: sp_inside_sparen = remove
* refactor: sp_before_sparen = force
* refactor: sp_sign = remove
* refactor: sp_addr = remove
* refactor: sp_member = remove
* refactor: nl_struct_brace = remove
* refactor: nl_before_if_closing_paren = remove
* refactor: nl_fdef_brace = force
* refactor: sp_paren_comma = force
* refactor: mod_full_brace_do = add
2021-10-31 17:03:08 -07:00
Michael Lingelbach
5ad15c9fa1
fix(lsp): improve symbols_to_items performance ( #16197 )
...
* use table.insert instead of list_extend to avoid validation overhead
Co-authored-by: Gianmarco Fantinuoli <fanto-dev@hotmail.com>
2021-10-31 15:18:51 -07:00
Michael Lingelbach
69e4cb7116
Merge pull request #15907 from black-desk/utf32-to-utf16
...
fix(lsp): default to UTF-16 in make_position_params
2021-10-31 14:47:08 -07:00
black_desk
85a8bede45
fix(lsp): default to UTF-16 when lsp client using str_utfindex
2021-10-31 14:15:56 -07:00
black_desk
2e3a4747e2
fix(lsp): default to UTF-16 in make_position_params
2021-10-31 14:15:56 -07:00
James McCoy
0c1585bc63
Merge pull request #16195 from jamessan/really-fix-win-ci
...
fix(ci): use correct check for path-existence
2021-10-31 15:11:21 -04:00
David Hotham
98f578293b
fix(lsp): don't update active_clients on exit_timeout ( #16192 )
2021-10-31 12:05:57 -07:00
James McCoy
7126315935
fix(ci): use correct check for path-existence
2021-10-31 14:09:10 -04:00
James McCoy
478748881f
Merge pull request #16187 from erw7/fix-build-MinGW
...
fix(build): fix build failure in MinGW
2021-10-31 12:54:52 -04:00
Björn Linse
4445e0230b
Merge pull request #16188 from bfredl/packentry
...
fix(runtime): fix missing packpath entries
2021-10-31 16:19:30 +01:00
erw7
0503e17375
fix(build): fix build failure in MinGW
...
The new MinGW fails to build libuv due to a typedef conflict between
mstcpip.h and src/win/winapi.h. This change avoids conflicts by disabling
typedef in the MinGW header.
2021-11-01 00:07:16 +09:00
Björn Linse
e6b8d4f67b
fix(runtime): fix missing packpath entries
2021-10-31 15:37:09 +01:00
James McCoy
346227e3ad
Merge pull request #16191 from jamessan/fix-cpack-removal
...
ci(win): only remove choco's cpack.exe if it exists
2021-10-31 10:35:43 -04:00
James McCoy
ec0f4fab48
ci(win): only remove choco's cpack.exe if it exists
2021-10-31 09:41:10 -04:00
Michael Lingelbach
52fa1d26db
feat(lsp): add formatexpr ( #16186 )
...
Co-authored-by: Meck <yesmeck@gmail.com>
Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-10-31 05:40:26 -07:00
Michael Lingelbach
4da0351651
fix(lsp): add placeholder cancel function ( #16189 )
...
Fixes a bug introduced by https://github.com/neovim/neovim/pull/15949
When no supported clients for a given method are available, buf_request
returns early with a nil value. If buf_request_sync is called on a
buffer with no clients that support a given method, the returned
`cancel` method (which is nil), is invoked, resulting in an error.
Solution: return an empty function handle
2021-10-31 04:44:45 -07:00
James McCoy
653d963293
Merge pull request #16182 from jamessan/backport-comment
...
ci(backport): trigger on comments too, so "/backport" works
2021-10-30 16:51:50 -04:00
James McCoy
a1eea968a5
ci(backport): trigger on comments too, so "/backport" works
...
[skip ci]
2021-10-30 16:50:13 -04:00
James McCoy
91f6c06b52
Merge pull request #16181 from jamessan/backport-perms
...
ci(backport): add write permissions for contents/pull_requests
2021-10-30 16:35:47 -04:00
James McCoy
9f5e736e5d
ci(backport): bump version to v0.0.7
...
[skip ci]
2021-10-30 16:33:20 -04:00
James McCoy
0c1b80efec
ci(backport): add write permissions for contents/pull_requests
...
The workflow needs to create commits and PRs.
[skip ci]
2021-10-30 16:29:02 -04:00
James McCoy
e501aac7ff
Merge pull request #16180 from jamessan/release-workflow
...
Refactor release workflow to use gh instead of a third-party action
2021-10-30 16:07:31 -04:00
James McCoy
c84b86fe3d
ci: make sure choco cpack does not interfere with CMake cpack
...
[skip ci]
2021-10-30 14:02:04 -04:00
James McCoy
c819ce1fd4
ci(release): do not fail if stable/nightly release doesn't exist
...
[skip ci]
2021-10-30 14:02:04 -04:00
James McCoy
eede587b06
ci(release): re-publish "stable" release for versioned releases
...
[skip ci]
2021-10-30 14:02:04 -04:00
James McCoy
0ce800753e
ci(release): use gh cli instead of 3rd-party actions
...
Closes #15709
[skip ci]
2021-10-30 14:01:47 -04:00
Michael Lingelbach
2230b578d1
feat: add vim.str_utf_{start,end} ( #16129 )
...
vim.str_utf_{start,end} return the offset from the current position to
the start and end of the current utf-character (nearest codepoint)
respectively.
2021-10-30 10:30:40 -07:00
Sean Dewar
97ae0ab4d8
fix(vim-patch.sh): run nvim with -u NONE -n #16179
...
Problem:
Because of -u NORC, vim-patch.sh would hang on my machine due to one of my
plugins (start package) waiting for prompt input.
Solution:
- Use -u NONE instead to disable all plugins.
- Also use -n to disable swapfiles. These changes only apply to the --headless
nvim instances used to process things.
2021-10-30 09:04:04 -07:00
Michael Lingelbach
c9e5c778b0
feat(lsp): default to botright for setting qflist ( #16177 )
...
* Opens quickfix list spanning the entire nvim window in location
handlers
closes https://github.com/neovim/neovim/issues/12241
2021-10-30 08:17:00 -07:00
Justin M. Keyes
a141f6e922
fix(vim.mpack): rename pack/unpack => encode/decode #16175
...
Problem:
1. "unpack" has an unrelated meaning in Lua:
https://www.lua.org/manual/5.1/manual.html#pdf-unpack
2. We already have msgpackparse()/msgpackdump() and
json_encode()/json_decode(), so introducing another name for the same
thing is entropy.
Solution:
- Rename vim.mpack.pack/unpack => vim.mpack.encode/decode
Caveat:
This is incongruent with the `Unpacker` and `Packer` functions.
- It's probably too invasive to rename those.
- They also aren't part of our documented interface.
- This commit is "reversible" in the sense that we can always revert
it and add `vim.mpack.encode/decode` as _aliases_ to
`vim.mpack.pack/unpack`, at any time in the future, if we want
stricter fidelity with upstream libmpack. Meanwhile,
`vim.mpack.encode/decode` is currently the total _documented_
interface of `vim.mpack`, so this change serves the purpose of
consistent naming in the Nvim stdlib.
2021-10-30 06:59:59 -07:00
Christian Clason
eb6a1039c5
fix(build): remove amalg build target for LuaJIT ( #16178 )
...
fixup for #16041 (`amalg` build is recommended by LuaJIT for performance
but this way of doing it breaks parallel build with `make -j`)
2021-10-30 12:10:19 +02:00