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