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
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
Folke Lemaitre
9e157df077
feat: refactor all vim.loop -> vim.uv and add a shim when needed
2024-03-22 08:58:36 +01:00
Folke Lemaitre
70f764bf73
fix(util): Util.merge now skips nil args
2023-10-13 11:37:57 +02:00
Folke Lemaitre
22bf6ae04b
style: sort requires
2023-10-09 11:25:42 +02:00
Folke Lemaitre
3c14a0a279
test: fix tests
2023-04-16 07:39:39 +02:00
Folke Lemaitre
462633bae1
perf: new file-based cache that ensures correct rtp order ( #532 )
...
* perf: new file-based cache that ensures rtp is alweays correct and will cache all files, including those after startup
* refactor: new cache
* test: fix tests
* fix(cache): cache file names on Windows
* feat(cache): allow to disable the cache
* docs: updated cache settings
2023-02-13 12:01:56 +01:00
Folke Lemaitre
f3695bc5be
test: fixed tests for `Util.merge`
2023-01-12 13:16:23 +01:00
Folke Lemaitre
b28c6b9000
feat(util): `Util.merge` now support advanced merging strategies. Docs coming soon
2023-01-10 07:32:28 +01:00
Folke Lemaitre
ad00eb1be2
test: fixed helper function to delete test directory
2023-01-07 22:52:49 +01:00
Folke Lemaitre
d34c85d580
fix(cache): check that modpaths still exist when finding mod root
2023-01-07 22:24:53 +01:00
Folke Lemaitre
953c2791d8
fix(util): made `Util.lsmod` more robust. See #298
2023-01-03 22:31:18 +01:00
Folke Lemaitre
51c23b661e
fix(spec): allow a spec module to be on the rtp and not only in config
2023-01-01 20:31:34 +01:00