Skip to content

mini.starter

Evgeni Chasnovski edited this page May 9, 2022 · 1 revision

How to make custom mappings for Starter buffer?

Use MiniStarterOpened event to make buffer-local mappings. Example of using <Left> and <Right> arrow keys to move between items:

vim.cmd([[
  augroup MiniStarterKeymaps
    au!
    au User MiniStarterOpened nmap <buffer> <Left> <Cmd>lua MiniStarter.update_current_item('next')<CR>
    au User MiniStarterOpened nmap <buffer> <Right> <Cmd>lua MiniStarter.update_current_item('prev')<CR>
  augroup END
]])
Clone this wiki locally