Meet the ultimate paradox where productivity and procrastination intertwine in a never-ending cycle of Neovim tweaks.
If you already have a Neovim configuration and want to keep it intact while trying this one, follow these steps:
-
Clone the Repository:
git clone https://github.com/lmilojevicc/nvim-config ~/.config/nvim-alt -
Launch Neovim with the New Config: Use the
NVIM_APPNAMEenvironment variable to specify the alternate config directory:NVIM_APPNAME=nvim-alt nvim
-
Optional: Create an Alias: To make launching this configuration easier, add an alias to your shell configuration file (e.g.,
.bashrc,.zshrc):alias nvim-alt='NVIM_APPNAME=nvim-alt nvim'
-
Enjoy!
You can now switch between your original config and this one effortlessly.
If you donβt have an existing Neovim configuration or donβt mind replacing it, follow these steps:
-
Backup Your Existing Config (Optional): If you want to save your current setup, back it up first:
mv ~/.config/nvim ~/.config/nvim-backup
-
Clone the Repository:
git clone https://github.com/lmilojevicc/nvim-config ~/.config/nvim -
Launch Neovim: Simply run:
nvim
-
Install Plugins: Install the plugins by running the following command:
:Lazy sync
Make sure you have the following installed on your system before using this configuration:
.
βββ init.lua # Main entry point for Neovim
βββ ftplugin/ # Filetype-specific settings (loaded automatically when opening matching files)
βββ lazy-lock.json # Dependency lock file (automatically managed by Lazy.nvim)
βββ lua/
βββ config/ # Core configuration modules
β βββ init.lua # Initializes and loads all core configurations
β βββ lazy.lua # Lazy plugin manager setup and configuration
β βββ keymaps.lua # Global keybindings and keyboard shortcuts
β βββ autocmds.lua # Autocommands for automatic actions on events
β βββ options.lua # Neovim built-in options and settings
βββ disabled/ # Archived configurations (temporarily disabled plugins)
βββ plugins/ # Plugin-specific configurations
βββ ...
<Space>is used as the leader key by default- Use
<leader>wkto search through key bindings