aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/functional
Commit message (Collapse)AuthorAgeFilesLines
* refactor!: change Package APIWilliam Boman2025-02-191-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the following public APIs: **(_breaking_) Events on the `Package` class** The `uninstall:success` event on the `Package` class now receives an `InstallReceipt` as argument, instead of an `InstallHandle`. This receipt is an in-memory representation of what was uninstalled. There's also a new `uninstall:failed` event for situations where uninstallation for some reason fails. Note: this also applies to the registry events (i.e. `package:uninstall:success` and `package:uninstall:failed`). --- **(_breaking_) `Package:uninstall()` is now asynchronous and receives two new arguments, similarly to `Package:install()`** While package uninstallations remain synchronous under the hood, the public API has been changed from synchronous -> asynchronous. Users of this method are recommended to provide a callback in situations where code needs to execute after uninstallation fully completes. --- **(_breaking_) `Package:get_install_path()` has been removed. --- **`Package:install()` now takes an optional callback** This callback allows consumers to be informed whether installation was successful or not without having to go through a different, low-level, API. See below for a comparison between the old and new APIs: ```lua -- before local handle = pkg:install() handle:once("closed", function () -- ... end) -- after pkg:install({}, function (success, result) -- ... end) ```
* fix: avoid calling vim.fn.has inside fast event (#1705)William Boman2024-05-121-3/+1
| | | | When this module is lazily required inside functional/init.lua we may be inside a fast event, causing the module to fail to load due to the top-level call to vim.fn.has.
* fix: fix usage of deprecated Neovim APIs (#1703)William Boman2024-05-113-1/+24
|
* fix(functional): strip_prefix and strip_suffix should not use patterns (#1352)William Boman2023-06-131-8/+14
|
* refactor(expr): remove redundant core filters and always stringify reduced ↵William Boman2023-04-182-0/+5
| | | | | value (#1227) The removed filters are not used by mason-registry and are too Lua-specific in nature.
* refactor: only schedule in a.scheduler() when in fast event (#1170)William Boman2023-04-021-0/+21
| | | Explicitly schedule via `a.wait(vim.schedule)` instead.
* style: enforce import order (#1092)William Boman2023-03-121-1/+1
| | | | | * chore(workflows): update dependencies * style: enforce import order
* feat: add github registry source capabilities (#1091)William Boman2023-03-121-0/+2
|
* feat(functional): add list.index_by (#882)William Boman2023-01-102-0/+13
|
* feat(functional): add split_every and default_to (#835)William Boman2023-01-023-0/+29
|
* feat(functional): add strip_{prefix,suffix} (#803)William Boman2022-12-262-2/+34
|
* feat(functional): add trim_start and assoc (#779)William Boman2022-12-204-6/+34
|
* feat(functional): add list.reduce (#772)William Boman2022-12-192-0/+13
|
* fix(functional): spread function args in _.apply (#770)William Boman2022-12-191-1/+1
|
* feat(functional): add some more functions (#755)William Boman2022-12-105-0/+104
|
* feat(functional): add more functions (#741)William Boman2022-12-085-0/+85
|
* feat: add provider interface (#601)William Boman2022-10-304-0/+19
|
* feat(api/command): add --debug flag to :MasonInstall (#576)William Boman2022-10-192-0/+13
|
* refactor(platform): more functional approach to parsing (#479)William Boman2022-09-292-0/+12
|
* refactor: introduce selene, harden type defs, and use proper EmmyLua syntax ↵William Boman2022-08-155-28/+44
| | | | (#296)
* feat: minimize modules required by .setup(), lazily require functional ↵William Boman2022-07-221-9/+19
| | | | modules (#113)
* fix(mason-lspconfig): deduplicate :LspInstall completion items (#88)William Boman2022-07-172-0/+19
|
* chore: change emmylua annotation syntax from @ to : for comments (#73)William Boman2022-07-141-1/+1
|
* refactor: add mason-schemas and mason-core modules (#29)William Boman2022-07-0810-0/+653
* refactor: add mason-schemas and move generated filetype map to mason-lspconfig * refactor: add mason-core module