feat: first commit

This commit is contained in:
Patrick
2025-08-09 09:40:16 +02:00
committed by Superredstone
commit 0b4617b552
20 changed files with 1389 additions and 0 deletions

27
config/cmp.nix Normal file
View File

@@ -0,0 +1,27 @@
{ ... }:
{
plugins.lspkind.enable = true;
plugins.cmp-nvim-lsp-signature-help.enable = true;
plugins.cmp = {
enable = true;
autoEnableSources = true;
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "nvim_lsp_signature_help"; }
{ name = "path"; }
{ name = "buffer"; }
{ name = "dap"; }
];
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 })";
};
};
};
}