Skip to content

vim.ui.select: cycle through values on <Tab> key #90

Closed Answered by stevearc
mrtnvgr asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you are using the built-in vim.ui.select backend, you can create a mapping using a filetype autocmd:

vim.api.nvim_create_autocmd("FileType", {
  pattern = "DressingSelect",
  callback = function(args)
    vim.keymap.set("n", "<Tab>", "j", { buffer = args.buf })
  end,
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrtnvgr
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