diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/blink.lua b/users/price/dots/.config/nvim/lua/plugins/configs/blink.lua index 290d0ce4..08b4821f 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/blink.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/blink.lua @@ -50,7 +50,24 @@ return { preset = "default", [""] = { "show", "show_documentation", "hide_documentation" }, [""] = { "hide", "fallback" }, - [""] = { "accept", "fallback" }, + [""] = { + function(cmp) + if vim.api.nvim_get_mode().mode:lower() == "c" then + return cmp.select_and_accept({ + callback = function() + vim.api.nvim_feedkeys( + vim.api.nvim_replace_termcodes("", true, true, true), + "n", + true + ) + end, + }) + else + return cmp.accept() + end + end, + "fallback", + }, [""] = { function(cmp) if cmp.snippet_active() then