This commit is contained in:
EdenQwQ 2025-03-01 22:35:08 +08:00
commit 96895ec3aa
100 changed files with 6349 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{
programs.nixvim = {
plugins.cmp = {
enable = true;
settings.sources = [
{ name = "buffer"; }
{ name = "path"; }
{ name = "spell"; }
{ name = "emoji"; }
{ name = "luasnip"; }
{ name = "nvim_lsp"; }
{ name = "copilot"; }
];
settings.mapping = {
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<CR>" = "cmp.mapping.confirm({ select = true })";
};
settings.window.completion.border = [
""
""
""
""
""
""
""
""
];
};
plugins.cmp-buffer.enable = true;
plugins.cmp-path.enable = true;
plugins.cmp-spell.enable = true;
plugins.cmp-emoji.enable = true;
plugins.cmp-nvim-lsp.enable = true;
};
}