Configuring my Neovim
- 12 Devlogs
- 7 Total hours
building and configuring a custom Neovim setup from scratch.
building and configuring a custom Neovim setup from scratch.
Added Terminal Feature
a built-in terminal that slides up from the bottom of the screen is exactly like VSCode.
Now when I Press Ctrl + \ on your keyboard.A sleek terminal will instantly slide up from the bottom of my screen, ready to type git commands, run servers, or compile code.
If you press Ctrl + \ again, it will hide away but keep whatever process you started running in the background!
Hit Esc (or type jk fast) to exit terminal insert mode.
How It works -
Space then e then e (<leader>ee). A clean, structural file panel will slide open on the left hand side of your screen!j and k movements to navigate up and down the file tree.Enter on a folder to expand it, or Enter on a file to open it in your main window.<leader>ee again.and more…
Earlier in the setup, I mapped my Leader key + s (Space + s) to save the file. Now when I press Space + s. Conform will catch the save command, perfectly format the entire file using Prettier/Stylua, and then write it to the disk, all in a fraction of a millisecond!
Autocomplete Menu Feature
Added a A beautiful, responsive autocomplete menu.without an autocomplete plugin, it has no way to actually show those suggestions while typing.
This feature configures nvim-cmp, which is the autocomplete engine for your Neovim setup
So I added Autocomplete menu feature, which -
Added Status Line And Indentation
By default, this specific layout divides status line into distinct visual chunks:
Indentation - plugin for displaying indentation in the file. You can see that vertical lines which show the indentation in the code.
Added Fuzzy finder in my Neovim
It will help us find any files or text that we need quickly and efficiently.
Ctrl + p finds files in the projectSpace + b shows a fuzzy finder with the list of opened buffersSpace + / gives you live search in the project.A plugin is for commenting code.
Now, I can use gcc, for example, to comment a line or gcG to comment the whole file.
I used numToStr/Comment.nvim github repo and doc for this
For my Neovim setup, I kept the custom keymaps minimal. Neovim already provides many useful default keybindings, so there is no need to create hundreds of custom shortcuts.
Some of the keymaps I added include:
Space + s to save the current filek and j for smoother cursor movementH and L to jump to the beginning and end of a lineQ to close the current buffervv and ss to create vertical and horizontal splitsCtrl + h/j/k/l to navigate between splitsTab and Shift + Tab for indentation in visual modey and p behavior to move the cursor to the end of copied or pasted textSpace + h to clear search highlightsconfigured all my settings in Neovim, here what I have done:
-Map our Leader key to Space
-Highlight search in the file.
-Show line numbers.
-Disable the mouse completely.
-Enable copying between Neovim and the system clipboard.
-Wrap our lines.
-Disable swap files but keep undo history.
-Decrease update time to make Neovim faster.
-Configure how and where we open splits.
-Change the indentation.
-Adjust how we scroll on the screen.
configured colors scheme for my editor, explored various colors schemes available by installing and I picked gruvbox.nvim for my IDE
Today I started working on configuring my own Neovim setup and turning it into a personal IDE.
I have :
-installed neovim
-created directory structure and setup files
-Started Using Lua for Configuration(using documentation)
-I installed and configured Lazy.nvim as my plugin manager.
-configured hackatime for neovim
following documentation for configuration & debugging issues
some of my time spent on debuggin and solving the errors, because it’s my first time working with Lua language