plugins/nvim-cmp: add enum type for option snippet.expand (#244)

This commit is contained in:
Gaétan Lepage 2023-03-12 22:31:32 +01:00 committed by GitHub
parent bfbe737aa3
commit c34c941c8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 18 deletions

View file

@ -4,6 +4,13 @@
plugins.nvim-cmp.enable = true;
};
snippetEngine = {
plugins.nvim-cmp = {
enable = true;
snippet.expand = "luasnip";
};
};
# All the upstream default options of nvim-cmp
defaults = {
plugins.nvim-cmp = {
@ -18,7 +25,7 @@
preselect = "Item";
snippet = {
expand = ''
expand.__raw = ''
function(_)
error('snippet engine is not configured.')
end