DEV Community

Cover image for My basic Neovim setup

My basic Neovim setup

Elves Sousa on November 09, 2021

In the last few articles, I commented on why I adopted Neovim as my main editor and went through the basics for using the program. However, it does...
Collapse
 
khaledbasiony profile image
KhaledBasiony

Great post, so simple and helped a lot! thank you!

I'd like to add a tip regarding nerd fonts for the complete linux beginners like me.

If you have GNOME then probably you are using gnome-terminal like me and it didn't find the fonts after installing them.

One work-around is to install gnome-tweaks
sudo apt install gnome-tweaks

Then run it with the same name gnome-tweaks, and go to the fonts tab, then set the "system mono" (or something like that :D ) to the nerd font you downloaded

Now in the gnome-terminal preferences, uncheck the "custom font" box.

And after a day of struggling, it works :D
Well at least for me on Pop!_os 21.10

Hope this helps :D

Collapse
 
elvessousa profile image
Elves Sousa

Thanks a lot, Khaled!

If Gnome shipped with Tweaks already installed, stuff would be much easier for beginners. I don't know the reason behind it... Maybe they don't want you tweaking stuff by default...

Anyway... Enjoy your setup!

Collapse
 
wesleycheek profile image
Wesley Cheek

Thanks, this helped me get my airline and NerdTREE to be a bit nicer looking!

Collapse
 
elvessousa profile image
Elves Sousa

Nice!

Collapse
 
yushi_61 profile image
Yushi5058

This config is what I searched for a long time, minimalist an efficient. Thank you very much !!

Collapse
 
hayukimori profile image
hayukimori

Thank you! It helped a lot!

Collapse
 
vonheikemen profile image
Heiker

This is an awesome post. And nice setup.

I do feel the need to defend lua a little bit here. After version 0.5 the lua api got better.

I'd say there is no need to learn everything about lua. Knowing just the most basic things can get you far.

Here's a simple lua config if anyone is curious.

For a config full of hacks and shenanigans here is mine: link.

Collapse
 
elvessousa profile image
Elves Sousa

I didn't mean to criticize Lua... It's a good language and I wish it gets more popular.
But for my simple goals I think it is a bit overkill. As I said, the setup should work on both Vim and Neovim, and that wouldn't be possible with Lua, as Vim doesn't support it.

Collapse
 
vonheikemen profile image
Heiker

Don't worry, I don't have any emotional attachment to lua. Was just trying to say a lua config doesn't have to be complex.

Collapse
 
ananddhruv295 profile image
Dhruv Anand

Hey man, thanks for this amazing and helpful post.
I was having a hard time configuring my NeoVim to fit my needs.
I use NeoVim for JavaScript development and you have helped me set it up.
Thanks a lot, once again and keep up the great work.

Collapse
 
elvessousa profile image
Elves Sousa

Nice! I'm glad it was helpful!

Collapse
 
amtr4x profile image
Amtr4x

This is an excelent guide, I have tweaked everything, but thanks to you I have configured nvim for first time! I always get overwhelmed with bad tutorials out there and you give me all knowledge to understand how init.vim works. Thanks bro

Collapse
 
elias89 profile image
Elias

Very good setup and very well explained. +1

Collapse
 
elvessousa profile image
Elves Sousa

Thanks a lot!