54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
plugins = {
|
|
blink-cmp = {
|
|
enable = true;
|
|
settings = {
|
|
appearance.use_nvim_cmp_as_default = true;
|
|
completion = {
|
|
list.selection.preselect = false;
|
|
documentation = {
|
|
auto_show = true;
|
|
};
|
|
ghost_text.enabled = true;
|
|
};
|
|
signature = {
|
|
enabled = true;
|
|
};
|
|
sources = {
|
|
default = [
|
|
"lsp"
|
|
"path"
|
|
"snippets"
|
|
"buffer"
|
|
];
|
|
providers = {
|
|
lsp.score_offset = 3;
|
|
path.score_offset = 2;
|
|
snippets.score_offset = 2;
|
|
buffer.score_offset = 1;
|
|
};
|
|
};
|
|
keymap = {
|
|
preset = "enter";
|
|
"<Tab>" = [
|
|
"select_next"
|
|
"fallback"
|
|
];
|
|
"<S-Tab>" = [
|
|
"select_prev"
|
|
"fallback"
|
|
];
|
|
"<C-n>" = [
|
|
"snippet_forward"
|
|
"fallback"
|
|
];
|
|
"<C-p>" = [
|
|
"snippet_backward"
|
|
"fallback"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
blink-compat.enable = true;
|
|
};
|
|
}
|