From 1fe638241a29c540d8717d8ed3b45914ca11e61a Mon Sep 17 00:00:00 2001 From: Guntur Poetra Date: Tue, 25 Feb 2025 02:59:20 +0800 Subject: [PATCH] feat: follow the config stream --- config/editor/cmp.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/editor/cmp.nix b/config/editor/cmp.nix index 884060f..fb75b9b 100644 --- a/config/editor/cmp.nix +++ b/config/editor/cmp.nix @@ -65,8 +65,9 @@ snippets.preset = lib.optionals config.plugins.luasnip.enable "luasnip"; - sources = rec { - cmdline.__raw = '' + cmdline = { + enabled = true; + sources.__raw = '' function() local type = vim.fn.getcmdtype() @@ -83,6 +84,9 @@ return {} end ''; + }; + + sources = rec { default = [ "lsp" "path" "snippets" "buffer" ] # built-in # community ++ lib.optionals config.plugins.blink-emoji.enable [ "emoji" ]