How I navigate between buffers in neovim

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

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

  • @Dieterbe
    @Dieterbe Месяц назад +5

    Omg this is the most good looking theme ive ever seen

    • @linkarzu
      @linkarzu  Месяц назад +3

      @@Dieterbe glad you like it! It's a custom theme I created, the link to the video to set it up is in the video description

  • @rolv529
    @rolv529 Месяц назад

    Great video. The `path_display` stuff was particularly nice - also didn't know about the options to pass to the buffers picker. I only really use the it when there's too many buffers open as usually I'm just using keybinds for next/previous buffer, alternating the last 2 buffers, harpoon (or grapple in my case) for multiple commonly accessed files and also just the plain file search using telescope. I'll try to use it a bit more after your tweaks though, seems nice and you're right, a lot of buffers does get overwhelming.

    • @linkarzu
      @linkarzu  Месяц назад +1

      I got used to navigating my buffers this way already, and so far I'm enjoying it, I have no complaints.
      I'll review harpoon and another plugin I use soon

  • @Biggybi
    @Biggybi 15 дней назад

    Just a note: "buffers as tabs" is done by a plugin which aims to imitate what we have in most IDEs ; default (neo)vim tabs are viewports to a window where you can have different splits, which can be quite useful.

  • @gno3939
    @gno3939 10 дней назад

    How did you adjust the ivy theme height on telescope? Mine seems to only cover like 25% of the screen

    • @linkarzu
      @linkarzu  10 дней назад +1

      I didn't change the height, that's the default at least for my config which is lazyvim, but you can change the height with this:
      {
      "gs",
      function()
      require("telescope.builtin").git_status(require("telescope.themes").get_ivy({
      layout_config = {
      -- Set preview width, 0.7 sets it to 70% of the window width
      preview_width = 0.7,
      -- height = 0.2,
      },
      initial_mode = "normal", -- Start in normal mode
      }))
      end,
      desc = "Git Status (ivy theme with custom preview size)",
      },
      Notice that I have "height" commented out, rest of my config is in my dots

    • @gno3939
      @gno3939 9 дней назад

      @@linkarzu thanks that works! the fremency is an interesting one..
      kinda wish that it didnt ignore dot files outside of gitignore as well..anyways great vid!

    • @linkarzu
      @linkarzu  9 дней назад

      @@gno3939 glad you found the video useful! I haven't played with ignored files and frecency. So ignored files don't show up in the search results?

  • @hechuan5075
    @hechuan5075 Месяц назад +2

    for navigating among files, I would either use alternate buffer, prev/next buffer(if im too lazy to setup marks), or arrow.nvim. I tried harpoon, grapple, but arrow seems to just be the perfect fit for me that acts like a smart vim mark. I never missed having tabs, and I also dont use tabs much when browsing, they are probably designed for mouse andys

    • @linkarzu
      @linkarzu  Месяц назад +1

      Thanks for sharing. I hadn't heard about arrow.nvim

    • @DEVDerr
      @DEVDerr Месяц назад +2

      Nah, tabs are cool when you have buffer numbers next to filename and some mapping that allows you to switch between them by using +1/2/3/4/5...etc.
      I'm doing this already with barbar.nvim, since it has that number displaying built-in and it's super nice with no overhead

    • @linkarzu
      @linkarzu  Месяц назад +1

      @@DEVDerr thanks for sharing your way, appreciate it.

  • @steeltormentors
    @steeltormentors 17 дней назад

    i uses tabs (accustomed to it from my Notepad++ and VScode days), while I agree it become unbearable if we got like 25 files opened, in my workflow it can be easily done using nvim-tree to select the file I want to edit. And I also often use the preview feature to see the contents of the file. One drawback from my setup: if I want to focus on files that's on a different directory --> here using telescope-buffer is much faster. But i can use the command buffers anyway...
    so yeah, that's how amazing neovim is...anyone can personalized it down to the roots.

    • @steeltormentors
      @steeltormentors 17 дней назад

      hey I retract my words...turns out the Telescope buffers is just an additional config utilizing Telescope, I thought I need to install another plugin...I was wrong! Post applying the same Telescope buffers setup, I fell in love with it!! thanks for this

    • @linkarzu
      @linkarzu  17 дней назад

      You're welcome and I'm glad you found it useful! That's my main way of navigating open buffers, I got used to it already, and yes, no additional plugin 🙂

  • @yungclowns
    @yungclowns 23 дня назад +1

    I use telescope buffers but I like starting in insert mode using C-n and C-p to go up/down

    • @linkarzu
      @linkarzu  20 дней назад +1

      I have a karabiner keymap hyper+j and hyper+k to go up or down on any app, but I just find it easier to press a single key and go down. Matter of preference I guess 🤝

  • @erpelappel
    @erpelappel Месяц назад

    Great job! You got a new subscriber 🖖😎

    • @linkarzu
      @linkarzu  Месяц назад

      Hey, I’m glad you liked the video and found it useful! 🤝

  • @vaisakh_km
    @vaisakh_km 26 дней назад +1

    Not using harpoon? Missing out..

    • @linkarzu
      @linkarzu  24 дня назад +1

      You should check out my video:
      "Snipe vs Harpoon in Neovim"

    • @linkarzu
      @linkarzu  24 дня назад +1

      ruclips.net/video/SuKhJlqGb5A/видео.html

    • @vaisakh_km
      @vaisakh_km 24 дня назад

      @@linkarzu sure, thanks

    • @linkarzu
      @linkarzu  23 дня назад

      @@vaisakh_km 🙂👍

  • @sevos
    @sevos 25 дней назад

    Nice config man

    • @linkarzu
      @linkarzu  24 дня назад

      Appreciate it! Hope you found some useful tips and tricks

  • @conradparker3761
    @conradparker3761 Месяц назад

    great stuff!

    • @linkarzu
      @linkarzu  Месяц назад

      @@conradparker3761 glad it helps!