summaryrefslogtreecommitdiff
path: root/lua/core
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2021-09-14 01:33:40 -0400
committerChristian Chiarulli <[email protected]>2021-09-14 01:33:40 -0400
commitf0b30f0a83988e6194970838656f9d4e8250e547 (patch)
treeb449a20cd5783f424a52f8843e82379f12a87518 /lua/core
parent414777077fc8cd76a83fe3b97c80c149f7dd7d0d (diff)
fix: no preselect for up/down, c-j/c-k and tab/s-tab
Diffstat (limited to 'lua/core')
-rw-r--r--lua/core/cmp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/core/cmp.lua b/lua/core/cmp.lua
index acfb05ae..928b7e3a 100644
--- a/lua/core/cmp.lua
+++ b/lua/core/cmp.lua
@@ -78,7 +78,7 @@ M.config = function()
-- TODO: potentially fix emmet nonsense
["<Tab>"] = cmp.mapping(function()
if vim.fn.pumvisible() == 1 then
- vim.fn.feedkeys(T "<C-n>", "n")
+ vim.fn.feedkeys(T "<down>", "n")
elseif luasnip.expand_or_jumpable() then
vim.fn.feedkeys(T "<Plug>luasnip-expand-or-jump", "")
elseif check_backspace() then
@@ -94,7 +94,7 @@ M.config = function()
}),
["<S-Tab>"] = cmp.mapping(function(fallback)
if vim.fn.pumvisible() == 1 then
- vim.fn.feedkeys(T "<C-p>", "n")
+ vim.fn.feedkeys(T "<up>", "n")
elseif luasnip.jumpable(-1) then
vim.fn.feedkeys(T "<Plug>luasnip-jump-prev", "")
else