Is Hop.nvim better than Flash.nvim?

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 51

  • @ascourter
    @ascourter  7 месяцев назад +6

    Do you use hop.nvim?

    • @luismarez4792
      @luismarez4792 7 месяцев назад

      I use mini.jump. i really like that is simply to navigate. it only extends the functionality of f, F, t and T to more than one line

    • @theherk
      @theherk 7 месяцев назад

      Currently using ggandor/flit.nvim and ggandor/leap.nvim. mini.jump is also good. Well, everything in mini.nvim is good, but I think the ggandor tools are great. I actually just haven't tried hop.nvim.

    • @Aleksey-n5h
      @Aleksey-n5h 6 месяцев назад +1

      you haven't noticed another very obvious feature of hop - it's double labels. This is very lacking in flash.vim and because of that, I'm not switching. The keyboard is very limited and hop.vim was able to turn it into a real tool

    • @ascourter
      @ascourter  6 месяцев назад

      @@Aleksey-n5h thanks for the feedback. I'll check out double labels.

    • @nielskersic328
      @nielskersic328 6 месяцев назад

      Yes! Been using it for a while now and I couldn’t imagine working without it

  • @candrawijayanto7026
    @candrawijayanto7026 6 месяцев назад +1

    Thanks for your video! I use both hop.nvim and flash.nvim. I mapped to flash.jump() and s to HopWord. I find HopWord more useful because I don't need to type the pattern I want to jump to, but whenever I need that, I can use !

    • @ascourter
      @ascourter  6 месяцев назад +1

      Oh that is interesting. Thanks for sharing! I definitely liked HopWord as well.

  • @cody_codes_youtube
    @cody_codes_youtube 7 месяцев назад +2

    Did not get a notification. BOOOOO.
    Nice work my dude!

    • @ascourter
      @ascourter  7 месяцев назад

      Haha no worries. Thanks Cody!

  • @diggus88
    @diggus88 13 дней назад

    At 3:44 when you start typing :HopAnywhere, fuzzy-matching commands are shown. Is that a setting or a plugin? And if it's a plugin, which one?

    • @ascourter
      @ascourter  13 дней назад

      It's a plugin for cmp. Check out my video on "The Most Requested Feature"

  • @tomb6865
    @tomb6865 3 месяца назад +2

    I think I prefer Leap, you have to type more to narrow down the highlight but I find it more useful

  • @vikingthedude
    @vikingthedude 6 месяцев назад +2

    Could you do a document structure overview plugin, like aerial nvim? I think this is a category of plugins we haven't seen much content on

    • @ascourter
      @ascourter  6 месяцев назад +1

      @@vikingthedude thanks for the request! I will add that to my list. I did cover aerials and symbols outline a bit in my "jump around buffers" video. Hopefully that gives a little taste while I work on a new one 😁

    • @vikingthedude
      @vikingthedude 6 месяцев назад

      @@ascourter thank you!

    • @vikingthedude
      @vikingthedude 6 месяцев назад

      @@ascourter I'll check out the other video too

  • @shyam1602
    @shyam1602 7 месяцев назад +4

    The functionality for hints when jumping with 'f/F' and 't/T' already exists in flash.nvim. If anyone is wondering how to get it working, here is part of my config for flash.nvim
    ```lua
    {
    "folke/flash.nvim",
    opts = {
    jump = {
    -- automatically jump when there is only one match
    autojump = true,
    },
    modes = {
    char = {
    jump_labels = true,
    multi_line = false,
    },
    },
    },
    }
    ```

    • @ascourter
      @ascourter  7 месяцев назад

      Nice! Thank you for sharing this!

  • @gatspycg7414
    @gatspycg7414 7 месяцев назад +3

    What plugin is the floating cmdline you are using?

    • @ascourter
      @ascourter  7 месяцев назад +1

      haha check out my video about "my most requested" plugin. Essentially it is using Noice and a couple other cmdline completions

    • @gatspycg7414
      @gatspycg7414 7 месяцев назад

      @@ascourter i got it, tks!

  • @NetBusters-ss2ix
    @NetBusters-ss2ix 7 месяцев назад

    Thank you andrew, You have been very helpful

  • @noomondai
    @noomondai 7 месяцев назад

    Thanks for this, it feels flash.nvim has better TreeSitter integration? The search did not highlight as many text objects as i would have expected, but maybe this can be configured?

    • @ascourter
      @ascourter  7 месяцев назад +1

      Yeah that's what it felt like to me as well. I didn't dig further into whether it could be configured differently

  • @brijeshsrivastava6682
    @brijeshsrivastava6682 7 месяцев назад +3

    In my opinion, the only thing missing in flash.nvim is the ability to move at the start and end of line simultaneously. But still, it is, for me, the best plugin for mouse-like navigation in nvim because of it's unique ability to search as many characters as I like.

    • @ascourter
      @ascourter  7 месяцев назад

      I am curious what you mean by move to start and end simultaneously

    • @brijeshsrivastava6682
      @brijeshsrivastava6682 7 месяцев назад

      ​​@@ascourter I want the jump labels to appear at the start of the line (equivalent to ^), and also the end of line (equivalent to $). But I am not able to implement this behavior in flash. Or in any plugin.

    • @lolikpof
      @lolikpof 7 месяцев назад +1

      If you do find a way of doing this, do let me know. That would be very useful. Currently I set up for "_" to cycle through first character on line, begining of the line, and end of the line, but what you're describing would be much better

    • @ascourter
      @ascourter  7 месяцев назад +2

      @@brijeshsrivastava6682 Ah ok. Yeah that would be pretty sweet. If I figure out a solution I will definitely share it here!

  • @heroclix0rz
    @heroclix0rz 4 месяца назад +2

    I feel like this type of navigation opens an important discussion about the cost of turnaround time between finger->eyes->brain->finger. 3 key presses where each press has to go through your eyes/brain is not faster than spamming w 4x while leaving your eyes and brain free to do other work. And it's not even a matter of "getting used to" these new motions, because the index of one press will always be dependent on the visual feedback created from the previous press. Meanwhile, if i can just look at the code in front of me and already know the vim motions to get me where i need to go, even if it takes 5-10 presses, i can then carry out those presses without even looking or thinking about it. My eyes and brain can be elsewhere.

  • @BillyBatson-q6v
    @BillyBatson-q6v 7 месяцев назад

    Yes
    Hop.nvim is better than all of these motion plugins because you can use the api to program whatever they are doing + 10 times more features

    • @ascourter
      @ascourter  7 месяцев назад +1

      What other functionality do you have implemented with the api?

  • @farzadmf
    @farzadmf 7 месяцев назад

    Oh no, the article needs an account 😢

    • @ascourter
      @ascourter  7 месяцев назад +1

      Here's a different version that doesn't need an account: open.substack.com/pub/andrewcourter/p/is-hopnvim-better-than-flashnvim

    • @farzadmf
      @farzadmf 7 месяцев назад

      @@ascourter Thank you very much; appreciate it; might be worth adding this guy to the desciption as well
      Thank you for all the great videos

  • @novelhawk
    @novelhawk 7 месяцев назад

    I use pounce

  • @ZiRo815
    @ZiRo815 7 месяцев назад +2

    No

    • @ascourter
      @ascourter  7 месяцев назад +1

      lol how very direct of you

  • @AhmadMughal1
    @AhmadMughal1 7 месяцев назад

    No it is not this is just so you could make a video.

  • @ivanjermakov
    @ivanjermakov 29 дней назад

    I don't think anything beats leap.nvim by efficiency.

  • @mainendra
    @mainendra 7 месяцев назад +2

    hop is like swiss army knife, recently I switched to mini.jump and mini.jump2d, simpler and get the job done 🙂, BTW it has other utilities (simpler version)

  • @johntouron5788
    @johntouron5788 7 месяцев назад +1

    Personally I prefer pounce.nvim. I find it to be both very simple and efficient.

    • @ascourter
      @ascourter  7 месяцев назад

      Nice. I'll check that one out as well!

    • @farzadmf
      @farzadmf 7 месяцев назад

      LOVE pounce.nvim, it just works!

  • @sachinsenal0x64
    @sachinsenal0x64 7 месяцев назад

    I'm happy with precognition.nvim

    • @ascourter
      @ascourter  7 месяцев назад +1

      Oh I don't think I've heard that one. Will check it out