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

@ -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})";
};
};
}