mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-09 03:56:05 +01:00
plugins/mini-completion: init
This commit is contained in:
parent
2d9f021430
commit
b275b3a3c3
2 changed files with 84 additions and 0 deletions
40
plugins/by-name/mini-completion/default.nix
Normal file
40
plugins/by-name/mini-completion/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-completion";
|
||||||
|
moduleName = "mini.completion";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
delay = {
|
||||||
|
completion = 100;
|
||||||
|
info = 100;
|
||||||
|
signature = 50;
|
||||||
|
};
|
||||||
|
window = {
|
||||||
|
info = {
|
||||||
|
height = 25;
|
||||||
|
width = 80;
|
||||||
|
border = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
signature = {
|
||||||
|
height = 25;
|
||||||
|
width = 80;
|
||||||
|
border = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lsp_completion = {
|
||||||
|
source_func = "completefunc";
|
||||||
|
auto_setup = true;
|
||||||
|
process_items = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
snippet_insert = lib.nixvim.nestedLiteralLua "nil";
|
||||||
|
};
|
||||||
|
fallback_action = "<C-n>";
|
||||||
|
mappings = {
|
||||||
|
force_twostep = "<C-Space>";
|
||||||
|
force_fallback = "<A-Space>";
|
||||||
|
scroll_down = "<C-f>";
|
||||||
|
scroll_up = "<C-b>";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,44 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-completion.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-completion = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
delay = {
|
||||||
|
completion = 100;
|
||||||
|
info = 100;
|
||||||
|
signature = 50;
|
||||||
|
};
|
||||||
|
window = {
|
||||||
|
info = {
|
||||||
|
height = 25;
|
||||||
|
width = 80;
|
||||||
|
border = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
signature = {
|
||||||
|
height = 25;
|
||||||
|
width = 80;
|
||||||
|
border = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
lsp_completion = {
|
||||||
|
source_func = "completefunc";
|
||||||
|
auto_setup = true;
|
||||||
|
process_items = lib.nixvim.mkRaw "nil";
|
||||||
|
snippet_insert = lib.nixvim.mkRaw "nil";
|
||||||
|
};
|
||||||
|
fallback_action = "<C-n>";
|
||||||
|
mappings = {
|
||||||
|
force_twostep = "<C-Space>";
|
||||||
|
force_fallback = "<A-Space>";
|
||||||
|
scroll_down = "<C-f>";
|
||||||
|
scroll_up = "<C-b>";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue