Commit Graph

1093 Commits

Author SHA1 Message Date
Folke Lemaitre a0391c3e21
fix(manage): dont skip install for plugins that need a build, but dont have an url (like local plugins). Fixes #1563 2024-06-27 11:32:00 +02:00
Folke Lemaitre 53f314d9e6
feat(ui): show indication of plugins that need build. See #1563 2024-06-27 11:31:20 +02:00
Folke Lemaitre 2e1167df4a
feat: added localleader-i to inspect a plugin 2024-06-27 11:30:29 +02:00
Folke Lemaitre 9c8e7a4840
feat(health): show user's lazy.nvim version in checkhealth 2024-06-27 10:44:35 +02:00
Folke Lemaitre 6a423278a1
fix(meta): resolve deps from meta instead of fragments. Fixes #1566 2024-06-27 10:21:54 +02:00
Folke Lemaitre 24a86d5ca4
fix(pkg): only show pkg changed when effectively changing a pkg file. Fixes #1567 2024-06-27 09:48:37 +02:00
Folke Lemaitre 591ded8309
feat(ui): keep cursor position when rendering view 2024-06-26 22:45:21 +02:00
Folke Lemaitre 249902ab31
fix(ui): diagnostics without status 2024-06-26 22:44:57 +02:00
Folke Lemaitre a0a51c06c2
feat: added `opts.headless` to control ansi output when running headless 2024-06-26 21:38:28 +02:00
Folke Lemaitre 93b3a77286
fix(runner): wait_step 2024-06-26 20:17:32 +02:00
Folke Lemaitre 66a4170f0e
fix(runner): properly do concurrency 2024-06-26 19:58:45 +02:00
Folke Lemaitre 97f4df0824
fix(runner): only use Config.plugins when updated. Fixes #1560 2024-06-26 19:39:28 +02:00
Folke Lemaitre 804cae0a65
refactor: hererocks check 2024-06-26 19:39:28 +02:00
github-actions[bot] 20af3fcc4e
chore(main): release 11.4.2 (#1558)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-26 18:47:38 +02:00
Folke Lemaitre 56075b57c4
fix(runner): bring concurrency back 2024-06-26 18:45:40 +02:00
Folke Lemaitre 206d208018
test: fix tests 2024-06-26 18:42:52 +02:00
Folke Lemaitre 6c7ef7e27a
refactor: logging 2024-06-26 18:31:31 +02:00
Folke Lemaitre 765773a176
refactor: use new async code for runner and simplify task class 2024-06-26 17:06:56 +02:00
Folke Lemaitre 768de1ebf6
refactor: move scheduler to async 2024-06-26 15:11:31 +02:00
Folke Lemaitre bbe136bda6
test: fix tests 2024-06-26 14:30:38 +02:00
Folke Lemaitre 0614ca6ca6
perf: tasks are now fully async 2024-06-26 14:28:53 +02:00
Folke Lemaitre 36952153ec
perf(util): improve impl of throttle 2024-06-26 14:28:22 +02:00
Folke Lemaitre 90e14d1585
refactor(rocks): is_simple_build 2024-06-26 11:11:00 +02:00
Folke Lemaitre 2aa8e061f2
fix(config): dont start checker/change_detection when running headless 2024-06-26 11:10:43 +02:00
Folke Lemaitre aa1c9572aa
fix(rocks): build.type instead of build.build_type 2024-06-26 08:50:06 +02:00
Folke Lemaitre 473361139c
fix(rockspec): dont lazy-load rock deps 2024-06-26 08:49:42 +02:00
Folke Lemaitre e79805d706
fix(ui): don't show output when it's the same as error 2024-06-26 07:15:12 +02:00
Folke Lemaitre 28e435b7f3
fix(git): fetch commit from origin or local to check if branch was changed. See #1549 2024-06-26 07:15:12 +02:00
github-actions[bot] 6d60dc3c05 chore(build): auto-generate rockspec mappings 2024-06-26 04:22:43 +00:00
Folke Lemaitre 67e1e8e6a3
ci: added neo to rockspec patterns 2024-06-26 06:22:23 +02:00
github-actions[bot] 69041bccb7
chore(main): release 11.4.1 (#1555)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-25 22:09:17 +02:00
Folke Lemaitre 3f7368c3ac
ci: use 5.1 manifest 2024-06-25 21:53:56 +02:00
Folke Lemaitre 0d9fd636be
fix(health): show what plugins need luarocks and if none, use warnings instead of errors. See #1551 2024-06-25 21:15:51 +02:00
github-actions[bot] 9ac375653b
chore(main): release 11.4.0 (#1554)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-25 21:05:40 +02:00
Folke Lemaitre 6b8bf58ebf
feat(rocks): simple rockspecs are now fully resolved by lazy without luarocks. See #1548 2024-06-25 20:53:42 +02:00
Folke Lemaitre be74a8a535
feat(pkg): utils to get rock to url mappings 2024-06-25 20:39:12 +02:00
Folke Lemaitre 25981e1f39
fix(meta): only tag new top-level pkg fragment as optional 2024-06-25 20:39:12 +02:00
github-actions[bot] aff7ee8e89 chore(build): auto-generate rockspec mappings 2024-06-25 18:35:51 +00:00
Folke Lemaitre aff65371fc
ci: add `cmp` to generated luarock mappings 2024-06-25 20:35:27 +02:00
github-actions[bot] 33be7ac317 chore(build): auto-generate rockspec mappings 2024-06-25 16:13:21 +00:00
Folke Lemaitre 7cda552c1c
ci: more rockspec patterns 2024-06-25 18:12:39 +02:00
Folke Lemaitre 49c0b86a6f
ci: move to _generated.lua 2024-06-25 18:07:28 +02:00
github-actions[bot] 786a3febc0 chore(build): auto-generate rockspec mappings 2024-06-25 15:48:19 +00:00
Folke Lemaitre 88911547e7
ci: fix some github urls 2024-06-25 17:48:04 +02:00
github-actions[bot] bc7bfb5d36 chore(build): auto-generate rockspec mappings 2024-06-25 15:42:29 +00:00
Folke Lemaitre b6eba0d026
ci: auto-get rockspec mappings for rock name => github short url or url 2024-06-25 17:41:16 +02:00
github-actions[bot] 2ca68f9979
chore(main): release 11.3.0 (#1543)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-25 16:21:15 +02:00
Folke Lemaitre 24c832213c
fix(meta): no need to check for old_dir when frags were not built yet. Fixes #1550 2024-06-25 15:51:40 +02:00
Folke Lemaitre 4ca3e9aa51
fix(rocks): windows 2024-06-25 15:44:13 +02:00
Folke Lemaitre 7d3f69104f
fix(rocks): better errors / warnings when something goes wrong with luarocks 2024-06-25 13:23:25 +02:00
Folke Lemaitre 45cd8d3f0f
fix(rocks): hererocks paths on windows 2024-06-25 06:40:50 +02:00
Folke Lemaitre d87da76679
feat(rocks): use hererocks to install luarocks when luarocks is not found 2024-06-25 07:55:30 +02:00
Folke Lemaitre dea1f687fe
fix(fragments): check for empty plugin names 2024-06-25 00:31:34 +02:00
github-actions[bot] 378bfb4656
chore(main): release 11.2.1 (#1542)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 23:44:20 +02:00
Folke Lemaitre 62a47b921f
fix(loader): no need to check plugin.dir in auto_load 2024-06-24 23:42:53 +02:00
github-actions[bot] 9bcbbc17a7
chore(main): release 11.2.0 (#1541)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 21:59:16 +02:00
Folke Lemaitre a089d43dba
feat: rewrite some known plugins to lazy specs instead of luarocks (plenary.nvim). Closes #1540 2024-06-24 21:57:34 +02:00
Folke Lemaitre 1446f6cfbb
perf: minimize meta rebuild when loading specs 2024-06-24 21:56:43 +02:00
Folke Lemaitre 0081c95aee
style: allow false for build 2024-06-24 20:23:03 +02:00
github-actions[bot] b6b0c4c15c
chore(main): release 11.1.0 (#1539)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 20:06:31 +02:00
Folke Lemaitre ae4881d36e
fix(health): only check for luarocks when luarocks is enabled. 2024-06-24 20:03:00 +02:00
Folke Lemaitre 77edda11bf
test: fixes 2024-06-24 19:55:11 +02:00
Folke Lemaitre e3ee51b668
fix(health): show missing luarocks as warning 2024-06-24 19:44:22 +02:00
Folke Lemaitre 07c067a1a8
feat: make it easier to disable luarocks 2024-06-24 19:44:07 +02:00
Folke Lemaitre 105d4805ad
fix(runner): sync package specs after installing and before building 2024-06-24 19:38:33 +02:00
Folke Lemaitre 656d3d1f5b
feat: show rockspec deps in plugin details 2024-06-24 18:02:54 +02:00
Folke Lemaitre 0f45c0d062
fix(health): added luarocks check to health 2024-06-24 17:50:29 +02:00
Folke Lemaitre 79afa96b90
style: remove pkg.versions 2024-06-24 17:47:01 +02:00
github-actions[bot] 7f52977c1d
chore(main): release 11.0.1 (#1538)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 17:39:01 +02:00
Folke Lemaitre 146de4e801
fix(rocks): dont trigger rebuild for luarocks when build is overriden 2024-06-24 17:36:59 +02:00
github-actions[bot] c33b9fbf8d
chore(main): release 11.0.0 (#1537)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 17:16:50 +02:00
Folke Lemaitre 9a6c219826 fix(rocks): only build rockspec when it has deps or an advanced build step 2024-06-24 17:15:10 +02:00
Folke Lemaitre dbffad6f44 fix(fragments): prevent adding the same spec instance more than once 2024-06-24 17:15:10 +02:00
Folke Lemaitre b73c57ed9e fix(luarocks): cleanup luarocks when deleting a plugin 2024-06-24 17:15:10 +02:00
Folke Lemaitre 368747bc9a feat(build): build files and functions are now async. use coroutine.yield to interrupt and report progress 2024-06-24 17:15:10 +02:00
Folke Lemaitre fcfd54835d feat: spec.rocks is no longer needed & added support for installing any luarock 2024-06-24 17:15:10 +02:00
Folke Lemaitre d498f81b8c style: wording 2024-06-24 17:15:10 +02:00
Folke Lemaitre 502600d3e6 docs: fix default lazy-loading comment 2024-06-24 17:15:10 +02:00
Folke Lemaitre 7b6ddbfc13 fix(pkg): automatically update pkgs when editing a pkg file 2024-06-24 17:15:10 +02:00
Folke Lemaitre 3515cb518f fix(pkg): make sure state dir exists 2024-06-24 17:15:10 +02:00
Folke Lemaitre fd8229d6e3 fix(pkg): versioning and reload specs when pkg-cache is dirty 2024-06-24 17:15:10 +02:00
Folke Lemaitre 183f59e2e8 feat!: new docs for v11.0 2024-06-24 17:15:10 +02:00
Folke Lemaitre 4326d4b487 fix(pkg): correctly pre-load package specs and remove them when needed during resolve 2024-06-24 17:15:10 +02:00
Folke Lemaitre ee2ca39f67 feat(meta): check for dir changes for plugins already added to the rtp 2024-06-24 17:15:10 +02:00
Folke Lemaitre 05e31ad059 docs: added comment on package source order 2024-06-24 17:15:10 +02:00
Folke Lemaitre d2bea9eefd docs: added doc comments 2024-06-24 17:15:10 +02:00
Folke Lemaitre c1912e2348 feat(pkg): import package specs in the scope of the plugin 2024-06-24 17:15:10 +02:00
Folke Lemaitre 75ffe56f70 feat: rewrite of spec resolving 2024-06-24 17:15:10 +02:00
Folke Lemaitre 3be55a4615 feat: added support for plugin packages by lazy, rockspec and packspec 2024-06-24 17:15:10 +02:00
Folke Lemaitre f1ba2e3d05 feat: luarocks support 2024-06-24 17:15:10 +02:00
Folke Lemaitre 8eba74c3fc feat: packspec 2024-06-24 17:15:10 +02:00
github-actions[bot] 4ea9fe0600
chore(main): release 10.24.3 (#1529)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-23 07:38:56 +02:00
Folke Lemaitre f4d57485b0
refactor: reloader 2024-06-18 00:36:11 +02:00
Folke Lemaitre 025520d083
fix(util): dump 2024-06-18 00:35:56 +02:00
Folke Lemaitre b4316da731
fix(plugin): rebuild optional when needed and remove frags from parent deps. Fixes #1402 2024-06-16 15:52:33 +02:00
Folke Lemaitre be5dfba542
fix(plugin): better way of dealing with local specs. Fixes #1524 2024-06-16 07:09:33 +02:00
Folke Lemaitre e2e10d9cbe
feat: find local_spec in parent directories as well. Closes #1519 2024-06-15 09:28:58 +02:00
Folke Lemaitre 067fd41933
fix(plugin): check optional plugins again after resolving enabled. Fixes #1402 2024-06-15 09:11:36 +02:00
github-actions[bot] fafe1f7c64
chore(main): release 10.23.0 (#1502)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-07 10:54:20 +02:00
Folke Lemaitre 1f7b720cff
feat(plugin): `opts_extend` can be a list of dotted keys that will be extended instead of merged 2024-06-07 09:02:52 +02:00
Folke Lemaitre 89ddc59d19
Revert "feat(util): opts merging now supports lists extending by tagging a table with __extend = true. Use with care"
This reverts commit 74fd3611f2.
2024-06-06 23:27:29 +02:00
Folke Lemaitre 74fd3611f2
feat(util): opts merging now supports lists extending by tagging a table with __extend = true. Use with care 2024-06-06 23:23:52 +02:00
github-actions[bot] 70f2c090d3
chore(main): release 10.22.2 (#1500)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-06 12:47:53 +02:00
Folke Lemaitre ff90417808
fix(keys): buffer-local nop mappings 2024-06-06 10:15:35 +02:00
Folke Lemaitre 3e4c795cec
fix(keys): never lazy-load `<nop>` or empty rhs keymaps 2024-06-06 09:28:35 +02:00
Vlad 784a726f2e
style: Set vim.opt.rtp type to vim.Option (#1498)
## Details

There is an issue in the `neodev` repo that mentions this:
[#193](https://github.com/folke/neodev.nvim/issues/193)

I think the problem comes from a combination of 2 things:

1. As mentioned in the [Reddit post](https://www.reddit.com/r/neovim/comments/1cvrilk/diagnosticwarning_after_upgrade_to_neovim_010/):
   `Nvim never had Lua type annotations for vim.opt`.
2. Setting `vim.opt.rtp` anywhere in the config will cause Lua-LS to infer the
   type for `vim.opt.rtp`. While users are unlikely to do this it does happen
   in `lazy.nvim`, in places shown in this PR.
2024-06-04 06:58:19 +02:00
Zhizhen He f39c79fcb1
style: fix some typo (#1496) 2024-06-03 09:18:43 +02:00
github-actions[bot] b0ba3f9399
chore(main): release 10.22.1 (#1495)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-02 14:53:20 +02:00
Folke Lemaitre 9242edb739
fix: force new release 2024-06-02 14:51:46 +02:00
Folke Lemaitre 58536d4c81
Revert "feat: set `vim.env.LAZY` to lazy root"
This reverts commit 6a141a6dbb.
2024-06-02 14:48:42 +02:00
github-actions[bot] ad30030b6a
chore(main): release 10.22.0 (#1493)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-01 18:57:42 +02:00
Folke Lemaitre 6a141a6dbb
feat: set `vim.env.LAZY` to lazy root 2024-06-01 18:20:39 +02:00
github-actions[bot] eab487c252
chore(main): release 10.21.2 (#1492)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-31 20:41:13 +02:00
Anshuman Medhi b77aaa08cb
fix(ui): deduplicate plugins when selecting multiple (#1491) 2024-05-31 16:28:33 +02:00
github-actions[bot] 4a8f813d81
chore(main): release 10.21.1 (#1490)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-31 14:14:25 +02:00
Folke Lemaitre 917dfbe2a9
fix(view): backward compat for older Neovim versions. Fixes #1489 2024-05-31 13:55:54 +02:00
github-actions[bot] 24fa2a9708
chore(main): release 10.21.0 (#1477)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-26 16:59:48 +02:00
Folke Lemaitre 9dde1f1bce
feat: added support for local spec files `.lazy.lua` 2024-05-26 16:43:52 +02:00
Christian Clason ea7b9c3c3f
fix(render): disable underline for diagnostics (#1478)
Problem: On current Nvim nightlies, a regression in a
`vim.highlight.range()` refactor makes underlines for diagnostics at end
of line extend into the next line, leading to visual artifacts in the
update view.

Solution: Suppress underlines for diagnostics, as they are not wanted
anyway.
2024-05-26 15:21:58 +02:00
Anshuman Medhi 7667a73dee
feat: single-plugin keys in the lazy view in visual mode (#1476)
Applies to all plugins contained in the range
2024-05-26 10:40:08 +02:00
github-actions[bot] 8f19915175
chore(main): release 10.20.5 (#1445)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-22 00:10:58 +02:00
Folke Lemaitre 82cf974e09
fix(keys): properly deal with ft list for keys. Fixes #1448 2024-05-21 22:10:49 +02:00
Folke Lemaitre 39de11a2fa
fix(keys): properly re-create buffer-local mappings. Fixes #1448 2024-05-20 21:15:04 +02:00
Folke Lemaitre 56a34a825b
fix(help): get rid of any tbl_flatten or iter flatten code 2024-05-19 17:29:43 +02:00
Folke Lemaitre 5d29ffeaa0
style: favorite icon 2024-05-18 13:23:55 +02:00
Kevin Traver 2e04a0c02c
fix(checker): ignore dev plugins (#1384) 2024-05-18 10:14:12 +02:00
Sebastian Lyng Johansen d039aecddb
fix: use vim.iter():flatten():totable() over vim.tbl_flatten (#1454) 2024-05-16 21:44:51 +02:00
Folke Lemaitre d2a4ce22dc
fix(git): force `autocrlf=false`. Fixes #1055 2024-05-13 08:34:39 +02:00
github-actions[bot] 758bb5de98
chore(main): release 10.20.4 (#1400)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-12 10:15:14 +02:00
Tristan Knight 2fcbcaf07a
fix(reload): strings in lua reload (#1439) 2024-05-12 09:50:06 +02:00
Folke Lemaitre 40845063a2
fix(ui): hover now opens repo url when no diff with main. Fixes #1430 2024-05-12 09:43:34 +02:00
Iordanis Petkakis 24234f47a2
fix(ui): add conditional `nvim_get_hl_by_name` for Neovim 0.8.0 (#1429) 2024-05-04 10:01:20 +02:00
Folke Lemaitre 481aed70cc
fix(heath): vim.uv. Fixes #1412 2024-04-22 10:33:32 +02:00
Folke Lemaitre 31ddbea7c1
fix(ui): set backdrop filetype to `lazy_backdrop`. Fixes #1399 2024-03-29 20:28:47 +01:00
github-actions[bot] bef521ac89
chore(main): release 10.20.3 (#1394)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-29 08:18:38 +01:00
Folke Lemaitre 0ccf031227
fix(ui): disable backdrop when Neovim is transparent 2024-03-28 14:52:07 +01:00
Folke Lemaitre f61ca6ec70
docs: fix commands table. Fixes #1393 2024-03-28 12:15:31 +01:00
Folke Lemaitre e753eb6025
ci: better docgen 2024-03-27 22:59:00 +01:00
Folke Lemaitre a836600573
docs: make bootstrap work on stable and nightly. Fixes #1391 2024-03-27 09:23:19 +01:00
github-actions[bot] 65887ea871
chore(main): release 10.20.2 (#1388)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-27 08:55:21 +01:00
Folke Lemaitre eefb8974d6
fix(ui): special handling for floats closed before VimEnter. Seems that WinClosed events dont execute before that. Fixes #1390 2024-03-27 08:48:55 +01:00
Folke Lemaitre d37a76b871
fix(ui): only enable backdrop when guicolors is set. Fixes #1387 2024-03-26 22:57:58 +01:00
github-actions[bot] 68941b7b13
chore(main): release 10.20.1 (#1386)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-26 20:32:47 +01:00
Folke Lemaitre 79e2e85934
fix(ui): properly cleanup on `:quit`. Fixes #1385 2024-03-26 20:31:15 +01:00
github-actions[bot] 107719d31e
chore(main): release 10.20.0 (#1382)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-26 19:54:49 +01:00
Folke Lemaitre a6b74f30d5
feat(ui): backdrop for the lazy floating window. Can be disabled with `opts.ui.backdrop` 2024-03-26 19:52:19 +01:00
Folke Lemaitre eade87fb83
fix(types): fixed type for `version`. Fixes #1381 2024-03-24 11:30:00 +01:00
github-actions[bot] af6afefbb4
chore(main): release 10.19.0 (#1377)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-22 23:39:43 +01:00
Folke Lemaitre 66466a2594
feat(util): option to force system app for util.open 2024-03-22 23:35:22 +01:00
github-actions[bot] 8134f2ac04
chore(main): release 10.18.3 (#1376)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-22 22:51:11 +01:00