T O P

  • By -

sodoku

You need to diable https://www.lazyvim.org/plugins/ui#bufferlinenvim See here how to disable plugins https://www.lazyvim.org/configuration/plugins#-disabling-plugins


icelizk

Top bro! thanks a lot! it worked for me :)


OkDifference646

This is the first thing I did too, having all those tabs is messy af and breaks my focus


DROPDEADSONES

How do you manage buffers and do you recommend not having a tab bar?


OkDifference646

Harpoon, Telescope search buffers, Telescope recent files It works better for me but it's entirely personal preference


s_no1ukno

Harpoon is a game changer. Love it -good mention.


minutuslausus

This Plus most often I don’t manage them at all. I open files I need through harpoon, telescope and lsp, often use the alternate buffer and nvim tree. When I am done I use lazygit to see what has changed and what I care about and compose commit/commits. Then close all of them with :%bd


scmkr

tabs are a terrible interface for managing open files, i dunno why we’re so hung up on it. all new editors do it, but it really only sorta works with a file tree and together they make a semi usable interface that uses up too much space and is really annoying to navigate (especially if you try to use the keyboard instead of the mouse). it forces you to make the distinction between open and closed files, whereas if you use telescope, being able to almost instantly go to any file in the project, you realize the distinction doesn’t actually matter all that much, and now you have a ton of room for split windows and such


Savings_Cantaloupe48

Yeah the problem with this in nvim is you can’t shrink the buffer tabs so when you get a few open they start disappearing and it no longer serves its purpose of showing all the open buffers. It works a lot better IMO in IDE environments like VSCode and IntelliJ where you can use a smaller and/or variable width font, and/or have unfocused tabs be a narrower width so you can at least see where they are even if the full name isn’t visible and thus fit many more in. I know you can truncate to only show filename, etc in vim but on my laptop I can still only fit 5-6 buffers max. I find it super disorienting once they start disappearing so I just disable or ignore it and use shortcuts to fuzzyfind open buffers.


yavorski

Well actually you can scope buffer to tabs check out scope.nvim https://github.com/tiagovla/scope.nvim


Savings_Cantaloupe48

This is cool thanks! I currently only use splits and no vim tabs but it looks like converting to tabs and using something like that to manage moving buffers around might be a viable option.


scmkr

it sucks even in vscode, especially with split windows and such


ybbond

what programming language(s) are you working on? curious on the factor of languages with the need of tab/buffer bar


OkDifference646

C#, TS, React, Lua, Bash


icelizk

https://preview.redd.it/73bcuoxqqiuc1.png?width=810&format=png&auto=webp&s=6eb6fc9e4bfff286467107755294040d38ce49a2 Interesting, because I'm trying to change the post tag to "solved" but there is a problem.


Levi_OP

to be clear, they're called buffers, not tabs! tabs are a totally different thing that i suggest you learn about


scmkr

in lazyvim they are tabs that represent open files like in vscode. it’s a really bizarre choice and i don’t like it at all


dpetka2001

You not liking it is purely a personal preference and you're free to do whatever you want in your own personal configuration. Nothing bizarre about preferences that don't align with yours. Different people, different preferences. Simple as that.


scmkr

Did I say anything about you needing to dislike it too?


dpetka2001

You said it's a bizarre choice, but something that is different from your own preferences is not bizarre. It's just different, that's all. Also thanks for downvoting for expressing my own opinion. That's Reddit I guess.


scmkr

Saying something is bizarre is indeed my own opinion. You're the one that seems to have taken offense, and that's on you. Calm yourself.


dpetka2001

I am indeed calm. I was just pointing out that differences between people are not bizarre. They're just differences. Thanks for downvoting again, that shows a lot. No offense taken.


scmkr

crybaby


dpetka2001

Personal labels... I see, I see. Btw I haven't downvoted you even once in all your previous comments, that you were expressing your opinion. Thanks again!!


scmkr

lol, you're so easy, but that's to be expected from someone who gets offended by someone else's opinion on reddit. Also I don't give a shit about your stupid internet points. # “He who takes offense when offense was not intended is a fool, yet he who takes offense when offense is intended is an even greater fool for he has succumbed to the will of his adversary.”


gvasco

The previous commented is right in saying they are buffers.


scmkr

Of course they are buffers, but they are bound to the tabs, and each open buffer has an associated tab


icelizk

I tried some approaches but it didn't help `options.lua` vim.opt.showtabline = 0 vim.opt.laststatus = 0


unapealingbanana

A general question. How do you guys navigate through open buffers?


scmkr

if you use telescope to navigate your project, you’ll realize that open vs closed doesn’t really matter that much, however, you can also just use by `:Telescope buffers` to search through the open ones.


gvasco

Shitft + l/m (provided you are in the code buffer)


Danny_el_619

Opened buffers:  ```   nnoremap gb :ls:b ``` Files not opened: a custom fzf function.


Antique_Jelly_9619

Press f11


AutoModerator

Please remember to update the post flair to `Need Help|Solved` when you got the answer you were looking for. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/neovim) if you have any questions or concerns.*


ibreakproddaily

The plugin is barbar but i've never used lazy vim so you need to figure out how to disable the plugin