fastaction: move to vim.ui, remove mappings, enable register_ui_select by default

This commit is contained in:
diniamo 2024-09-19 19:55:57 +02:00
commit 24b4902913
10 changed files with 35 additions and 74 deletions

View file

@ -8,5 +8,6 @@
./illuminate
./breadcrumbs
./borders
./fastaction
];
}

View file

@ -0,0 +1,20 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf mkDefault;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.ui.fastaction;
in {
config = mkIf cfg.enable {
vim = {
ui.fastaction.setupOpts.register_ui_select = mkDefault true;
startPlugins = ["fastaction-nvim"];
pluginRC.fastaction-nvim = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})";
};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./fastaction-nvim.nix
./config.nix
];
}

View file

@ -0,0 +1,9 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.ui.fastaction = {
enable = mkEnableOption "overriding vim.ui.select with fastaction.nvim";
setupOpts = mkPluginSetupOption "fastaction" {};
};
}