mini/completion: init

This commit is contained in:
LilleAila 2025-01-17 19:28:07 +01:00
parent 68483183c1
commit 887e563076
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -64,6 +64,7 @@
- `mini.clue` - `mini.clue`
- `mini.colors` - `mini.colors`
- `mini.comment` - `mini.comment`
- `mini.completion`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1096,6 +1096,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-completion": {
"flake": false,
"locked": {
"lastModified": 1732271068,
"narHash": "sha256-dlQCfHUQX9rPiSYZSRipezHX0CG/redbV2g7cpwwExY=",
"owner": "echasnovski",
"repo": "mini.completion",
"rev": "6eb9546685c4e1c4af2365b87166d4afa39d8a1b",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.completion",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2302,6 +2318,7 @@
"plugin-mini-clue": "plugin-mini-clue", "plugin-mini-clue": "plugin-mini-clue",
"plugin-mini-colors": "plugin-mini-colors", "plugin-mini-colors": "plugin-mini-colors",
"plugin-mini-comment": "plugin-mini-comment", "plugin-mini-comment": "plugin-mini-comment",
"plugin-mini-completion": "plugin-mini-completion",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -795,5 +795,10 @@
url = "github:echasnovski/mini.comment"; url = "github:echasnovski/mini.comment";
flake = false; flake = false;
}; };
plugin-mini-completion = {
url = "github:echasnovski/mini.completion";
flake = false;
};
}; };
} }

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.completion = {
enable = mkEnableOption "mini.completion";
setupOpts = mkPluginSetupOption "mini.completion" {};
};
}

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.mini.completion;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-completion"];
pluginRC.mini-completion = entryAnywhere ''
require("mini.completion").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./completion.nix
./config.nix
];
}

View file

@ -10,5 +10,6 @@
./clue ./clue
./colors ./colors
./comment ./comment
./completion
]; ];
} }