From 29dc93d387f8c82f17e3d1935339b9b7d9891c4b Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Fri, 2 Jun 2023 08:47:58 -0400 Subject: [PATCH] Trying to fix snippets --- homeConfig/dotfiles/nvim/lua/config/autocmds.lua | 9 +++++++-- homeConfig/home.nix | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/homeConfig/dotfiles/nvim/lua/config/autocmds.lua b/homeConfig/dotfiles/nvim/lua/config/autocmds.lua index 9523480..83436e3 100644 --- a/homeConfig/dotfiles/nvim/lua/config/autocmds.lua +++ b/homeConfig/dotfiles/nvim/lua/config/autocmds.lua @@ -53,17 +53,17 @@ vim.cmd [[ local luasnip = require 'luasnip' cmp.setup { - -- other configurations... mapping = { [''] = cmp.mapping(function(fallback) if vim.fn.pumvisible() == 1 then - vim.fn.feedkeys(vim.api.nvim_replace_termcodes('', true, true, true), 'n') + vim.fn.feedkeys(vim.api.nvim_replace_termcodes('', true, true, true), 'n') elseif luasnip.expand_or_jumpable() then vim.fn.feedkeys(vim.api.nvim_replace_termcodes('luasnip-expand-or-jump', true, true, true), '') else fallback() end end, { 'i', 's' }), + [''] = cmp.mapping(function(fallback) if vim.fn.pumvisible() == 1 then vim.fn.feedkeys(vim.api.nvim_replace_termcodes('', true, true, true), 'n') @@ -73,6 +73,11 @@ cmp.setup { fallback() end end, { 'i', 's' }), + + [''] = cmp.mapping(function(fallback) + fallback() + end, { 'i', 's' }), + }, } diff --git a/homeConfig/home.nix b/homeConfig/home.nix index c6e485d..ada49a3 100644 --- a/homeConfig/home.nix +++ b/homeConfig/home.nix @@ -86,6 +86,7 @@ nil marksman sumneko-lua-language-server + stylua ];