mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-29 20:49:48 +01:00
fastaction: support vim.ui.borders
This commit is contained in:
parent
e8ed82b072
commit
3fe62b3cef
2 changed files with 7 additions and 2 deletions
|
@ -44,6 +44,7 @@ in {
|
||||||
nvim-cmp = mkPluginStyleOption "nvim-cmp";
|
nvim-cmp = mkPluginStyleOption "nvim-cmp";
|
||||||
lsp-signature = mkPluginStyleOption "lsp-signature";
|
lsp-signature = mkPluginStyleOption "lsp-signature";
|
||||||
code-action-menu = mkPluginStyleOption "code-actions-menu";
|
code-action-menu = mkPluginStyleOption "code-actions-menu";
|
||||||
|
fastaction = mkPluginStyleOption "fastaction";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,13 +8,17 @@
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
cfg = config.vim.ui.fastaction;
|
cfg = config.vim.ui.fastaction;
|
||||||
|
borderCfg = config.vim.ui.borders.plugins.fastaction;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
ui.fastaction.setupOpts.register_ui_select = mkDefault true;
|
ui.fastaction.setupOpts = {
|
||||||
|
register_ui_select = mkDefault true;
|
||||||
|
popup.border = mkIf borderCfg.enable borderCfg.style;
|
||||||
|
};
|
||||||
|
|
||||||
startPlugins = ["fastaction-nvim"];
|
startPlugins = ["fastaction-nvim"];
|
||||||
pluginRC.fastaction-nvim = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})";
|
pluginRC.fastaction = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue