plugins/nvim-cmp: allow users to provide a 'listOf listOf sources'

This commit is contained in:
Gaetan Lepage 2023-08-28 16:06:05 +02:00 committed by Gaétan Lepage
parent b393989ba5
commit 26626aa1b1
2 changed files with 71 additions and 12 deletions

View file

@ -132,4 +132,40 @@
};
};
};
list-of-sources = {
plugins.nvim-cmp = {
enable = true;
sources = [
{name = "path";}
{name = "nvim_lsp";}
{name = "luasnip";}
{
name = "buffer";
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
}
{name = "neorg";}
];
};
};
list-of-lists-of-sources = {
plugins.nvim-cmp = {
enable = true;
sources = [
[
{name = "path";}
{name = "nvim_lsp";}
]
[
{
name = "buffer";
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
}
]
];
};
};
}