mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
plugins/nvim-cmp: add enum type for option snippet.expand (#244)
This commit is contained in:
parent
bfbe737aa3
commit
c34c941c8f
2 changed files with 49 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue