Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How do I disable the navigation by "letter" on starter so I can use j, k and <CR>? #70

Closed
dathinaios opened this issue May 3, 2022 · 2 comments
Labels
mini.starter question Further information is requested

Comments

@dathinaios
Copy link

As the title states, I don't need to navigate using letter selection as I usually just go to my last saved session and when I need to change I just want to select different one with j, k as I used to do on startify. Muscle memory is kicking in pretty strongly with this one...

@echasnovski
Copy link
Owner

At the moment, I don't think there is a way. And ,probably, won't be a builtin way to do so because of the main idea of using "query" before arrows.

There are at least two options for you:

  • Use require('mini.starter').setup({ query_updaters = '' }) with custom buffer mappings for j and k using MiniStarter.update_current_item(). So something like:
require('mini.starter').setup({ query_updaters = '' })
vim.cmd([[
  augroup MiniStarterJK
    au!
    au User MiniStarterOpened nmap <buffer> j <Cmd>lua MiniStarter.update_current_item('next')<CR>
    au User MiniStarterOpened nmap <buffer> k <Cmd>lua MiniStarter.update_current_item('prev')<CR>
  augroup END
]])
  • Try to get used to <M-j>/<M-k>. I personally use these and it was not that hard transition.

@echasnovski echasnovski added question Further information is requested mini.starter labels May 3, 2022
@dathinaios
Copy link
Author

Works a treat 😀 Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mini.starter question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants