Skip to content

How to unmap C-i and use tab instead? #1633

Answered by ipatch
txtyash asked this question in Q&A
Discussion options

You must be logged in to vote

i setup this plugin differently than your example above but i have the below snippet in my init.lua

local cmp = require('cmp')

cmp.setup({
  sources = {
    {name = 'path'},
    {name = 'nvim_lsp'},
    {name = 'nvim_lua'},
  },
  mapping = {
    -- use `TAB` key to highlight next item in list
    ['<Tab>'] = cmp.mapping.select_next_item(),
    ['<S-Tab>'] = cmp.mapping.select_prev_item(),
    -- ['<C-Space>'] = cmp.mapping.complete(),
    ['<CR>'] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace }),
  },
}

you can check out my entire init.lua here it changes a lot so i'll include the permalink.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by txtyash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants