mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-20 10:51:17 +00:00
fastaction: move to vim.ui, remove mappings, enable register_ui_select by default
This commit is contained in:
parent
7e8a53bc03
commit
24b4902913
10 changed files with 35 additions and 74 deletions
20
modules/plugins/ui/fastaction/config.nix
Normal file
20
modules/plugins/ui/fastaction/config.nix
Normal 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})";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue