mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
ui/colorful-menu-nvim
This commit is contained in:
parent
13b2f7a96d
commit
8a148ad71e
6 changed files with 63 additions and 10 deletions
|
@ -0,0 +1,9 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.ui.colorful-menu-nvim = {
|
||||
enable = mkEnableOption "treesitter highlighted completion menus [colorful-menu.nvim]";
|
||||
setupOpts = mkPluginSetupOption "colorful-menu-nvim" {};
|
||||
};
|
||||
}
|
20
modules/plugins/ui/colorful-menu-nvim/config.nix
Normal file
20
modules/plugins/ui/colorful-menu-nvim/config.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.ui.colorful-menu-nvim;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["colorful-menu-nvim"];
|
||||
pluginRC.colorful-menu-nvim = entryAnywhere ''
|
||||
require("colorful-menu").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
6
modules/plugins/ui/colorful-menu-nvim/default.nix
Normal file
6
modules/plugins/ui/colorful-menu-nvim/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./colorful-menu-nvim.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue