From 3fe62b3cef41611107f072e1fb753a3d7e3882cf Mon Sep 17 00:00:00 2001 From: diniamo Date: Thu, 19 Sep 2024 20:43:50 +0200 Subject: [PATCH] fastaction: support vim.ui.borders --- modules/plugins/ui/borders/borders.nix | 1 + modules/plugins/ui/fastaction/config.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/plugins/ui/borders/borders.nix b/modules/plugins/ui/borders/borders.nix index 99515919..5c57c1a6 100644 --- a/modules/plugins/ui/borders/borders.nix +++ b/modules/plugins/ui/borders/borders.nix @@ -44,6 +44,7 @@ in { nvim-cmp = mkPluginStyleOption "nvim-cmp"; lsp-signature = mkPluginStyleOption "lsp-signature"; code-action-menu = mkPluginStyleOption "code-actions-menu"; + fastaction = mkPluginStyleOption "fastaction"; }; }; } diff --git a/modules/plugins/ui/fastaction/config.nix b/modules/plugins/ui/fastaction/config.nix index 252bfb1e..79c3e252 100644 --- a/modules/plugins/ui/fastaction/config.nix +++ b/modules/plugins/ui/fastaction/config.nix @@ -8,13 +8,17 @@ inherit (lib.nvim.lua) toLuaObject; cfg = config.vim.ui.fastaction; + borderCfg = config.vim.ui.borders.plugins.fastaction; in { config = mkIf cfg.enable { 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"]; - pluginRC.fastaction-nvim = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})"; + pluginRC.fastaction = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})"; }; }; }