aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* fix: respect os_proc_children rv of pid not foundCharlie Groves2022-03-01
| | | | | | | | os_proc_children returns 2 if there's a failure in the underlying syscall. Only shell out to pgrep in that case. It returns 1 if the pid isn't found. In that case, we can roll forward with returning an empty list.
* fix: enable filetype detection and syntax highlighting with --clean (#17566)Gregory Anders2022-03-01
| | | | | --clean is supposed to emulate a "fresh install" and since Neovim enables filetype detection and syntax highlighting by default, these should be enabled when using --clean as well.
* Merge pull request #17542 from dundargoc/ci/skip-oldtest-on-windowsJames McCoy2022-03-01
|\
| * ci(windows): skip oldtest on windows until failing tests are fixedDundar Göc2022-03-01
|/ | | | The oltests hang on windows, making all CI runs fail.
* Merge pull request #17556 from zeertzjq/remove-unused-k-aucmd-specialbfredl2022-03-01
|\ | | | | refactor: remove unused K_AUCMD_SPECIAL
| * refactor: remove unused K_AUCMD_SPECIALzeertzjq2022-03-01
| |
* | Merge pull request #15079 from shadmansaleh/feat/verbose_luabfredl2022-03-01
|\ \ | | | | | | feat(lua): add :verbose support for lua config
| * | fix: anonymous sid not workingshadmansaleh2022-02-28
| | |
| * | feat(lua): show proper verbose output for lua configurationshadmansaleh2022-02-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `:verbose` didn't work properly with lua configs (For example: options or keymaps are set from lua, just say that they were set from lua, doesn't say where they were set at. This fixes that issue. Now `:verbose` will provide filename and line no when option/keymap is set from lua. Changes: - compiles lua/vim/keymap.lua as vim/keymap.lua - When souring a lua file current_sctx.sc_sid is set to SID_LUA - Moved finding scripts SID out of `do_source()` to `get_current_script_id()`. So it can be reused for lua files. - Added new function `nlua_get_sctx` that extracts current lua scripts name and line no with debug library. And creates a sctx for it. NOTE: This function ignores C functions and blacklist which currently contains only vim/_meta.lua so vim.o/opt wrappers aren't targeted. - Added function `nlua_set_sctx` that changes provided sctx to current lua scripts sctx if a lua file is being executed. - Added tests in tests/functional/lua/verbose_spec.lua - add primary support for additional types (:autocmd, :function, :syntax) to lua verbose Note: These can't yet be directly set from lua but once that's possible :verbose should work for them hopefully :D - add :verbose support for nvim_exec & nvim_command within lua Currently auto commands/commands/functions ... can only be defined by nvim_exec/nvim_command this adds support for them. Means if those Are defined within lua with vim.cmd/nvim_exec :verbose will show their location . Though note it'll show the line no on which nvim_exec call was made.
* | | fix(api): include event in get_autocmds (#17553)Christian Clason2022-03-01
| | |
* | | Merge pull request #17557 from zeertzjq/clarify-plugzeertzjq2022-03-01
|\ \ \ | |_|/ |/| | docs: clarify actual behavior of <Plug>
| * | docs: clarify actual behavior of <Plug>zeertzjq2022-03-01
|/ /
* | Merge pull request #17551 from bfredl/lua_autocmd_rebasebfredl2022-02-28
|\ \ | | | | | | feat(lua_autocmd): episode III (the autocmds strike back)
| * | feat(lua): add missing changes to autocmds lost in the rebaseTJ DeVries2022-02-28
|/ / | | | | | | Note: some of these changes are breaking, like change of API signatures
* | Merge pull request #17529 from seandewar/api-string-oopsiebfredl2022-02-28
|\ \ | | | | | | fix(api): convert blob to NUL-terminated API string
| * | fix(api): convert blob to NUL-terminated API stringSean Dewar2022-02-26
| | | | | | | | | | | | | | | Looks like I did an oopsie; although API strings carry a size field, they should still be usable as C-strings! (even though they may contain embedded NULs)
* | | Merge pull request #17476 from dundargoc/test/emmyluazeertzjq2022-02-28
|\ \ \ | |_|/ |/| | test: correct emmylua annotations
| * | test: correct emmylua annotationsDundar Göc2022-02-20
| | | | | | | | | | | | This will fix the warnings sumneko language server outputs.
* | | Merge pull request #17544 from r0x0d/update-readme-for-fedora-linkzeertzjq2022-02-28
|\ \ \ | | | | | | | | Fix fedora broken link
| * | | docs: fix fedora broken link in readmeRodolfo Olivieri2022-02-27
|/ / / | | | | | | | | | | | | | | | The link to the neovim fedorapackage.org in the README.md was broken. Signed-off-by: Rodolfo Olivieri <rodolfo.olivieri3@gmail.com>
* | | Merge pull request #14661 from tjdevries/tjdevries/lua_autocmd_v2bfredl2022-02-28
|\ \ \ | | | | | | | | lua: autocmds take 2: electric autoroo
| * | | feat(lua): add api and lua autocmdsTJ DeVries2022-02-27
|/ / /
* | | feat(lua): add <f-args> to user commands callback (#17522)Javier Lopez2022-02-27
| | | | | | | | | | | | | | | Works similar to ex <f-args>. It only splits the arguments if the command has more than one posible argument. In cases were the command can only have 1 argument opts.fargs = { opts.args }
* | | Merge pull request #16969 from shadmansaleh/enhance/ingore_nore_on_plug_keymapsbfredl2022-02-27
|\ \ \ | | | | | | | | feat: ignore nore on <Plug> maps
| * | | chore: remove <Plug> detection from vim.keymapshadmansaleh2022-02-27
| | | |
| * | | feat: ignore nore on <Plug> mapsshadmansaleh2022-02-27
| | | |
* | | | Merge pull request #17540 from jamessan/luv-bump-fixJames McCoy2022-02-27
|\ \ \ \ | | | | | | | | | | ci(lint): use bundled luv until system packages are updated
| * | | | ci(lint): re-add building of third-partyJames McCoy2022-02-27
| | | | |
| * | | | ci(lint): use bundled luv until system packages are updatedJames McCoy2022-02-27
| | | | |
| * | | | build: bump minimum version of luv to 1.43.0James McCoy2022-02-27
|/ / / / | | | | | | | | | | | | | | | | This is required for the recent addition of lua loop threading (luv_set_thread).
* | | | vim-patch:c51cf0329809 (#17530)Christian Clason2022-02-27
| | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/c51cf0329809c7ae946c59d6f56699227efc9d1b
* | | | Merge pull request #17386 from bfredl/neothreadbfredl2022-02-27
|\ \ \ \ | | | | | | | | | | support threads in lua
| * | | | refactor(lua): cleanup and docs for threadsbfredl2022-02-26
| | | | |
| * | | | refactor(lua): use references directly on main threadBjörn Linse2022-02-26
| | | | |
| * | | | feat(lua): add proper support of luv threadserw72022-02-26
| | |_|/ | |/| |
* | | | Merge pull request #17432 from zeertzjq/vim-8.1.2336zeertzjq2022-02-27
|\ \ \ \ | |_|/ / |/| | | vim-patch:8.1.2336,8.2.{4338,4401}: mapping cursor and redrawing patches
| * | | test: add more tests for :*map cursor and redrawingzeertzjq2022-02-17
| | | |
| * | | vim-patch:8.2.4401: map listing does not clear the rest of the command linezeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Map listing does not clear the rest of the command line. Solution: Call msg_clear_eos(). (closes vim/vim#5623, closes vim/vim#5962) https://github.com/vim/vim/commit/d288eaad846f0e07e0141226f97d858dcf96cb78
| * | | test: add some tests for :*map <expr>Jay Sandhu2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for: - Cursor position restored after :map expr - Cursor position restored after :imap expr - Error in :cmap expr handled correctly Cherry-picked from #12837
| * | | vim-patch:8.2.4338: an error from an expression mapping messes up the displayzeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: An error from an expression mapping messes up the display. Solution: When the expression results in an empty string return K_IGNORE. In cmdline mode redraw the command line. (closes vim/vim#9726) https://github.com/vim/vim/commit/74a0a5b26d0180f3ea89e9495dff6a26f0df23cb
| * | | vim-patch:8.1.2336: when an expr mapping moves the cursor it is not restoredzeertzjq2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: When an expr mapping moves the cursor it is not restored. Solution: Position the cursor after an expr mapping. (closes vim/vim#5256) https://github.com/vim/vim/commit/4ebe0e62d097d68c5312f9c32714fb41a4c947a3
* | | | Merge pull request #17531 from ↵James McCoy2022-02-26
|\ \ \ \ | | | | | | | | | | | | | | | dundargoc/refactor/coverity/big-parameter-passed-by-value
| * | | | fix(coverity/175977): big parameter passed by valueDundar Göc2022-02-26
| | | | |
* | | | | Merge pull request #17535 from dundargoc/test/ci-foldJames McCoy2022-02-26
|\ \ \ \ \
| * | | | | test(ci): remove non-existent ci-fold from testsDundar Göc2022-02-27
|/ / / / /
* | | | | Merge pull request #17525 from lf-/hardcopy-truecolorbfredl2022-02-26
|\ \ \ \ \ | |/ / / / |/| | | | feat(hardcopy): check gui colours for highlights first
| * | | | feat(hardcopy): check gui colours for highlights firstJade Lovelace2022-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, :hardcopy would only use terminal highlight colours, with a fixed mapping table, despite internally supporting true colour. This patch looks at the guifg colour first while coming up with the printing highlight colours, then falls back to the terminal ones. I have passed through the modec argument in this change because it was there before, but it could be deleted and hardcoded to 'c' since nobody sets it to anything else anywhere.
* | | | | Merge pull request #17532 from dundargoc/ci/add-timeoutJames McCoy2022-02-26
|\ \ \ \ \ | | | | | | | | | | | | ci: add timeout to all jobs
| * | | | | ci: add timeout to all jobsDundar Göc2022-02-26
|/ / / / /
* | | | | Merge pull request #16845 from seandewar/floaty-aucmd-winbfredl2022-02-26
|\ \ \ \ \ | | | | | | | | | | | | fix(aucmd_win): ensure aucmd_win stays floating