Open comments for this post
Added Conform Formatter ( code formatter) for Neovim
- This plugin is going to take Prettier (for your JavaScript/HTML) and hook it directly into your save command.
- Now the moment I save my file, it will instantly snap all my messy indentation and brackets into perfect alignment.
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!
Open comments for this post
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 -
- popup menu appears when you start typing code
- It decides what to show you (functions, variables, file paths, snippets)
- Gives auto code snippet
Open comments for this post
Added Status Line And Indentation
- It displays contextual information about the current buffer, cursor, and editor state.
- By default, it shows the file path, modification status (e.g., [+] for unsaved changes), LSP diagnostics (error/warning counts), and cursor position (line and column).
By default, this specific layout divides status line into distinct visual chunks:
-
Far Left: Instantly shows what mode you are in (NORMAL, INSERT, VISUAL) with clear color changes.
-
Middle Left: Hooks directly into your GitHub configuration to show you which branch you are on and if you have any uncommitted changes.
-
Far Right: Displays the exact line and column number your cursor is sitting on, along with the file type (like lua or markdown).
Indentation - plugin for displaying indentation in the file. You can see that vertical lines which show the indentation in the code.
Open comments for this post
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 project
-
Space + b shows a fuzzy finder with the list of opened buffers
-
Space + / gives you live search in the project.
Open comments for this post
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
Open comments for this post
Custom Keymaps
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 file
-
k and j for smoother cursor movement
-
H and L to jump to the beginning and end of a line
-
Q to close the current buffer
-
vv and ss to create vertical and horizontal splits
-
Ctrl + h/j/k/l to navigate between splits
-
Tab and Shift + Tab for indentation in visual mode
- Improved
y and p behavior to move the cursor to the end of copied or pasted text
-
Space + h to clear search highlights
Open comments for this post
configured 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.
Open comments for this post
configured colors scheme for my editor, explored various colors schemes available by installing and I picked gruvbox.nvim for my IDE
Open comments for this post
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