Code Folding in Neovim

preview_player
Показать описание
In this video I go over the different code folding methods in Neovim and how to configure my favorite plugin, nvim-ufo to make code folds even better.

Join this channel to get access to perks:

Gear:

🎵 Music
Music: Evan King

⏰ Timestamps
0:00 Intro
0:30 Example
0:59 The Fold Methods
1:29 Manual
3:32 Indent
4:06 Marker
5:09 Syntax
5:39 Expr
6:38 Diff
7:14 Troubleshooting and saving folds
7:58 Custom keymaps
8:36 nvim-ufo
10:57 Outro

#neovim #coding #programming
Рекомендации по теме
Комментарии
Автор

What code folding plugins or methods do you use?

ascourter
Автор

One of the best videos I've seen. I always had hard time with folds in neovim. Thanks a lot

bassamsaleh
Автор

I didn't know i need folding before in neovim, now i need one cuz i need to read long php code from my senior and i came accross this video
Anyway thank's for the amazing and simple explanation video without going through much of configuration

iusearchbtw
Автор

Nice overview of how folds work. I learned some new things!

And I’ve set some custom icons with UFO as virtual text to not clutter up the gutter.

JoshMedeski
Автор

Great video by the way, I knew nothing about folds, and this helped me clear a lot of doubts. Thank you!

linkarzu
Автор

Indent method is good for now. Thanks for all information that you shared.👍

temelgunaydin
Автор

Code folding is one of those things I never use, but cool to see you cover topics like these

rkbgkgmjfm
Автор

Does folding and unfolding by one level work with nvim-ufo? I don't any mentions of remapping zr/zm.

GrzegorzMilka
Автор

Hey great video ! Do you happen to know if you can switch it off for certain buffers ? Like Dapui for example ?

arnoeagleeyes
Автор

Great Video! I had no idea there were so many options! Agree that nvim-ufo is 🔥

cantucodes
Автор

Nice video. I gave up on using folding because every time I would use a formatter, folds would always get disorganized.

alopradocai
Автор

Hey thanks, for the video. I had a hard time setting up ufo & understanding how it should be used.
I still have an issue with fold not remaining persistent after quitting nvim. What did I miss?

mokied
Автор

The video was really helpful. Thank you. Is there any way to save the fold state even after closing the buffer?

vyqTstwSULV
Автор

with foldmethod=indent, how to fold all code (ie all class ...) indents at once ? thx for sharing, have fun

aumhren
Автор

very helpful video, thanks a lot! Just one question - rather irrelevant to this video, sorry for that -, but I really like how your terminal looks with showing the git branch icon and the nodejs version as well. How can one do that?

fegyi
Автор

Andew, How can we select or copy whole function and can we jump function to function?! Love your content brother

Faisal_
Автор

Ive installed ufo and its dependency in kickstart, and lazy tells me it installed correctly, but whenever i type "require('ufo')" anywhere and restart the editor i get an error that the ufo module cant be found, i cant find any info on how to resolve this anywhere

AcethPlanetJJ
Автор

Is it possible to close only 2nd level folds? ... Or nth level folds?

jrohit
Автор

How to enable folds for particular filetype e.g. norg, markdown?

rkdeshdeepak
Автор

A small trick, but it can still improve workflow

naranyala_dev