From dce7f6ebe5781fec161dba8aa458335f14e5d263 Mon Sep 17 00:00:00 2001
From: Eric Olerud <eric@olerud.com>
Date: Mon, 12 Aug 2024 23:15:51 -0400
Subject: [PATCH] add rust snippets and update autocomplete button

---
 init.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/init.lua b/init.lua
index 4156d77a..2dfc07f0 100644
--- a/init.lua
+++ b/init.lua
@@ -618,6 +618,7 @@ require('lazy').setup({
           {
             'rafamadriz/friendly-snippets',
             config = function()
+              require('luasnip').filetype_extend('rust', { 'rust' })
               require('luasnip.loaders.from_vscode').lazy_load()
             end,
           },
@@ -665,7 +666,7 @@ require('lazy').setup({
           --  This will auto-import if your LSP supports it.
           --  This will expand snippets if the LSP sent a snippet.
           -- original: ['<C-y>'] = cmp.mapping.confirm { select = true },
-          ['<Return>'] = cmp.mapping.confirm { select = true },
+          ['<CR>'] = cmp.mapping.confirm { select = true },
 
           -- Manually trigger a completion from nvim-cmp.
           --  Generally you don't need this, because nvim-cmp will display