mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 03:04:34 +02:00
plugins/nvim-cmp: allow users to provide a 'listOf listOf sources'
This commit is contained in:
parent
b393989ba5
commit
26626aa1b1
2 changed files with 71 additions and 12 deletions
|
@ -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";
|
||||
}
|
||||
]
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue