mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-25 07:59:48 +01:00
99ace503ad
* plugins/lsp: add code-actions module; add fastaction.nvim * deprecate nvimCodeActionMenu * fastaction-nvim: move range_code_action to visual maps * fastaction: move to vim.ui, remove mappings, enable register_ui_select by default * fastaction: add missing documentation * fastaction: support vim.ui.borders * treewide: clean up nvim-code-action-menu remnants * docs: add missing section ids --------- Co-authored-by: NotAShelf <raf@notashelf.dev>
24 lines
597 B
Nix
24 lines
597 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf mkDefault;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
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;
|
|
popup.border = mkIf borderCfg.enable borderCfg.style;
|
|
};
|
|
|
|
startPlugins = ["fastaction-nvim"];
|
|
pluginRC.fastaction = entryAnywhere "require('fastaction').setup(${toLuaObject cfg.setupOpts})";
|
|
};
|
|
};
|
|
}
|