mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/completion: init
This commit is contained in:
parent
68483183c1
commit
887e563076
7 changed files with 62 additions and 0 deletions
|
@ -64,6 +64,7 @@
|
|||
- `mini.clue`
|
||||
- `mini.colors`
|
||||
- `mini.comment`
|
||||
- `mini.completion`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1096,6 +1096,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2302,6 +2318,7 @@
|
|||
"plugin-mini-clue": "plugin-mini-clue",
|
||||
"plugin-mini-colors": "plugin-mini-colors",
|
||||
"plugin-mini-comment": "plugin-mini-comment",
|
||||
"plugin-mini-completion": "plugin-mini-completion",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -795,5 +795,10 @@
|
|||
url = "github:echasnovski/mini.comment";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-completion = {
|
||||
url = "github:echasnovski/mini.completion";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
13
modules/plugins/mini/completion/completion.nix
Normal file
13
modules/plugins/mini/completion/completion.nix
Normal 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" {};
|
||||
};
|
||||
}
|
19
modules/plugins/mini/completion/config.nix
Normal file
19
modules/plugins/mini/completion/config.nix
Normal 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})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/completion/default.nix
Normal file
6
modules/plugins/mini/completion/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./completion.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
|
@ -10,5 +10,6 @@
|
|||
./clue
|
||||
./colors
|
||||
./comment
|
||||
./completion
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue