Fast Jumping in Neovim with Leap.nvim

Sdílet
Vložit
  • čas přidán 8. 09. 2024

Komentáře • 50

  • @ascourter
    @ascourter  Před 3 měsíci

    What techniques / plugins do you use for fast jumping?

    • @RapLyricalVideos
      @RapLyricalVideos Před 3 měsíci +1

      Harpoon by ThePrimeagen

    • @ascourter
      @ascourter  Před 3 měsíci +1

      @@RapLyricalVideos do you use that to jump between buffers or to specific locations within a buffer?

    • @ovidiu_nl
      @ovidiu_nl Před 3 měsíci

      None. I just use relative numbers to jump to the row I want (I may use H, M, L to get close first) and then I use w, f, t etc to move horizontally. That way I have the muscle memory to jump around effectively even if I'm on a minimally configured vim (for instance on a server). I feel like leap or similar plugins would ruin that muscle memory.
      I never really understood harpoon. If I do something that requires me to jump around a bunch of locations I just set up some uppercase marks. That also doesn't require any plugin.

    • @RapLyricalVideos
      @RapLyricalVideos Před 3 měsíci

      @@ascourter
      a --- for adding a file in a Harpoon list
      m --- for viewing Harpoon menu
      first.html -> 1
      second.html -> 2
      third.html -> 3
      fourth.html -> 4

    • @ovidiu_nl
      @ovidiu_nl Před 3 měsíci +2

      @@RapLyricalVideos I'd do mA, mB, mC, mD to mark the locations, then 'A, 'B, 'C, 'D to jump back to them. I guess I don't have the menu, but I don't really feel I'm missing much... I usually set these up for the task at hand so it's all kinda temporary. I'm not going to forget which is which.
      And I often set a Z mark as a sort of anchor point when I'm about to embark on some exploration of the code and I want to be able to quickly jump back where I started.

  • @theherk
    @theherk Před 3 měsíci

    The whole mini.nvim library is incredible. mini.files and mini.clue and best-in-class in my opinion.

    • @ascourter
      @ascourter  Před 3 měsíci

      Nice. This is on my list to explore more after hop.nvim

  • @Youkouleleh
    @Youkouleleh Před 3 měsíci +1

    I was using easy motion before, i liked it

  • @noomondai
    @noomondai Před 3 měsíci

    Welcome back thanks for the vid!

  • @rodelias9378
    @rodelias9378 Před 3 měsíci +1

    Nice video! Thanks! Looking forward to flash.nvim video

  • @linkarzu
    @linkarzu Před 3 měsíci

    Nice, thanks for the tip. I navigate horizontally using the default "f" then ";" but the single character I can type is not good enough for me. So I'll try this.

  • @aquepaique
    @aquepaique Před 3 měsíci

    I personally prefer using the default / ?
    I find more comfortable typing the whole word than guessing the random char that leap/flash will prompt.

    • @orian7688
      @orian7688 Před 3 měsíci +1

      flash.nvim is similar to leap but allows you to type as many letters as you want

    • @aquepaique
      @aquepaique Před 3 měsíci +1

      ​@@orian7688 yeah, and also Leap is confusing because sometimes the cursor makes random jumps before the objective. Flash is the best option IMO, but I prefer using the vim native behavior (?/ ctrl-g ctrl-t)

    • @tedmoyses2942
      @tedmoyses2942 Před 3 měsíci

      Came here to say this. Glad it's not just me ​@@aquepaique

    • @ascourter
      @ascourter  Před 3 měsíci

      Thanks for sharing! I definitely get this and have had to train my muscles not to type the word when using leap.

  • @rwz
    @rwz Před 3 měsíci

    It would be great to know if a plugin works well within macros. Will give it a try, but definitely need to find a good alternative for `s`.

    • @ascourter
      @ascourter  Před 3 měsíci +1

      Oh good question. That's something I can think about with upcoming videos. Thanks!

  • @j1d7s
    @j1d7s Před 3 měsíci

    I have been using leap for a long time, it is one of my favourite plugins and I don't think it get's better, but let's see what you tell us about the others! One thing I noticed was that the "search area" is being greyed out, this does not happen for me. Maybe it is because of my colorscheme (?).

    • @ascourter
      @ascourter  Před 3 měsíci +1

      Nice! Oh it might be your color scheme like you mentioned. I'm using Tokyo night.

    • @j1d7s
      @j1d7s Před 3 měsíci

      @@ascourter I am using "catppuccin/nvim". But I think it may be better afer all if the search area is not greyed out for me because that could hurt readability.

  • @prashlovessamosa
    @prashlovessamosa Před 3 měsíci

    Mr Andrew how can I render images in neovim there is a plugin image.nvim I have followed its instructions i use kitty but I am still unable to do it please make something on it.

    • @ascourter
      @ascourter  Před 3 měsíci

      Thanks for your request! I went down a rabbit hole of trying to get image rendering to work in the terminal but it didn't work out since I use tmux. I will dig more into this and hopefully get a video on doing this in neovim without tmux and see what I can come up with.

  • @obszczymucha1337
    @obszczymucha1337 Před 3 měsíci

    What is the plugin that highlights the first letters in words after pressing f or F?

  • @onewhoanimates9016
    @onewhoanimates9016 Před 3 měsíci

    Nice video, I switched from leap to flash, check it out. No more s and S, with flash s jumps forwards and backwards

    • @ascourter
      @ascourter  Před 3 měsíci +1

      Nice, I'm experimenting with flash this week!

  • @jagannathhari
    @jagannathhari Před 3 měsíci

    Also for me visual selection is not working

    • @ascourter
      @ascourter  Před 3 měsíci

      Thank you! I'm glad it's not just me

  • @WhatNameHere
    @WhatNameHere Před 3 měsíci

    Does your config work with golang? Or how can one make it work?

    • @ascourter
      @ascourter  Před 3 měsíci

      I haven't setup golang yet, it's on my list to configure and I'll be sure to create a video on it!

    • @WhatNameHere
      @WhatNameHere Před 3 měsíci

      @@ascourter yeah I’ll be waiting for it, and probably a video explaining how you exactly can setup basically everything for any language + dap.

  • @cody_codes_youtube
    @cody_codes_youtube Před 3 měsíci +1

    FIRST

  • @naranyala_dev
    @naranyala_dev Před 3 měsíci

    combine things like oil.nvim and leap.nvim in the future, or others

  • @tranquythuong
    @tranquythuong Před 3 měsíci +2

    I think hop.nvim is more simple to use than Leap.nvim

    • @ascourter
      @ascourter  Před 3 měsíci +1

      What do you like about hop.nvim?

    • @rtalexk
      @rtalexk Před 3 měsíci +1

      Leap is predictable compared to to others that I’ve tried. In Leap you’ll always press the first two characters of a word. And when you know exactly where you want to move to, you don’t have to think, this leaves you with way less marks to think about, just the tie breaker.

    • @tranquythuong
      @tranquythuong Před 3 měsíci

      @@rtalexk In hop.nvim, I just use the word jumping. When I need to jump to a specific word, I look at that word and double press on leader key, then type 1, 2 or 3 chars to jump to it, just have to think once. As you describe the leap.nvim, each time you need to jump, you type first 2 chars, and then press something one more time to jump, that's more complicated.

  • @RapLyricalVideos
    @RapLyricalVideos Před 3 měsíci

    FIRST