feat: config rewrite (#1)

This commit is contained in:
Patrick Canal
2026-05-23 09:25:51 +02:00
committed by GitHub
parent f992b47a95
commit c6b94479c2
17 changed files with 111 additions and 332 deletions
+31
View File
@@ -0,0 +1,31 @@
{ ... }:
{
plugins = {
lspkind.enable = true;
cmp-nvim-lsp-signature-help.enable = true;
cmp = {
enable = true;
autoEnableSources = true;
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "nvim_lsp_signature_help"; }
{ name = "path"; }
{ name = "buffer"; }
{ name = "dap"; }
{ name = "blink-emoji"; }
{ name = "blink-ripgrep"; }
];
mapping = {
"<Tab>" = "cmp.mapping.select_next_item()";
"<S-Tab>" = "cmp.mapping.select_prev_item()";
"<C-j>" = "cmp.mapping.scroll_docs(4)";
"<C-k>" = "cmp.mapping.scroll_docs(-4)";
"<C-Space>" = "cmp.mapping.complete()";
"<C-Esc>" = "cmp.mapping.close()";
"<CR>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })";
};
};
};
};
}