This repository serves as my personal Neovim configuration setup, tailored to enhance my development workflow. It includes various plugins, settings, and custom key mappings designed to improve productivity and streamline coding tasks. Below, you'll find detailed explanations of the key components and instructions for setting up the configuration on your own machine.
- Pre-configured key mappings, options, and commands
- Catppuccin color scheme π€©
- lazy.nvim for easy and performant plugin management
- telescope.nvim for fuzzy file searching
- Harpoon to navigate with just a few keystrokes
- Excellent file explorer provided by nvim-tree
- none-ls for seamless integration with linters and formatters
- mason.nvim and nvim-lspconfig for easy installation and management of LSP servers
- nvim-cmp for great completions and snippets
- Simple but powerful terminal UI for git commands with lazygit.nvim
- And much more π
- Neovim >= 0.10.0
- Git >= 2.19.0 (for cloning this repo)
- a Nerd Font (optional, but needed to display some icons)
- lazygit (if you want to use lazygit)
- a C compiler for nvim-treesitter. See this for more information
- ripgrep for telescope.nvim
- iTerm2 or any terminal that supports true color and undercurl
-
Make sure to backup your current Neovim config if you have one:
# required mv ~/.config/nvim{,.backup} # optional but recommended mv ~/.local/share/nvim{,.backup} mv ~/.local/state/nvim{,.backup} mv ~/.cache/nvim{,.backup}
-
Clone this repo into your Neovim config folder
git clone https://github.com/emiliosheinz/nvim-config ~/.config/nvim
-
Remove the
.git
folder, so you can add it to your own repo laterrm -rf ~/.config/nvim/.git
-
Start Neovim π₯³
nvim
In this section you'll find some useful key mappings, commands, and workflows to help you get started with the configuration.
Reference: https://www.youtube.com/watch?v=9JCsPsdeflY
- Search for the term you wan to replace using Telescope:
<leader>fs
- Send all the results to the quickfix list using
<C-q>
- Run
:cfdo %s/old/new/g | update | bd
to replace all occurrences ofold
withnew
in all files in the quickfix list
π‘ Pro tip: In case you want to preview the changes before applying them, you can use the c
flag in the :s
command. This will open a confirmation window for each occurrence.