pta2002/intellitab.nvim

Add cmp mapping Example

Leiyi548 opened this issue · 3 comments

Add cmp mapping Example

Hello, is this requesting an example of a mapping for nvim-cmp?

Hello, is this requesting an example of a mapping for nvim-cmp?

yes,I need.
thank you

Hello, is this requesting an example of a mapping for nvim-cmp?

yes

Hey, can you please try setting up this mapping on nvim-cmp and telling me if it works?

['<Tab>'] = function(fallback)
  if cmp.visible() then
    cmp.select_next_item() -- or whatever else you want nvim-cmp to do when you press tab
  else
    require("intellitab").indent()
  end
end