mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-09 03:56:11 +00:00
Generated using:
- `sd -F "inherit (lib.nvim.binds) mkMappingOption;" "inherit (config.vim.lib) mkMappingOption;" $(find . -type f)`
- `sd -F "{lib, ...}: let" "{config, lib, ...}: let" $(find . -type f)`
Tweaked manually (placement in inherit list, fixing todo-comments and toggleterm).
Ran `nix run nixpkgs#deadnix -- -e` to clean up.
Next commit includes unrelated dead code.
22 lines
541 B
Nix
22 lines
541 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.options) mkEnableOption;
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
inherit (config.vim.lib) mkMappingOption;
|
|
in {
|
|
options = {
|
|
vim.runner.run-nvim = {
|
|
enable = mkEnableOption "run.nvim";
|
|
setupOpts = mkPluginSetupOption "run.nvim" {};
|
|
|
|
mappings = {
|
|
run = mkMappingOption "Run cached" "<leader>ri";
|
|
runOverride = mkMappingOption "Run and override" "<leader>ro";
|
|
runCommand = mkMappingOption "Run prompt" "<leader>rc";
|
|
};
|
|
};
|
|
};
|
|
}
|