Skip to content

lmilojevicc/nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

59 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ My Neovim Configuration

Meet the ultimate paradox where productivity and procrastination intertwine in a never-ending cycle of Neovim tweaks.


πŸš€ Quick Start Options

Option 1: Try This Config Without Overwriting Your Existing One

If you already have a Neovim configuration and want to keep it intact while trying this one, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/lmilojevicc/nvim-config ~/.config/nvim-alt
  2. Launch Neovim with the New Config: Use the NVIM_APPNAME environment variable to specify the alternate config directory:

    NVIM_APPNAME=nvim-alt nvim
  3. 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'
  4. Enjoy!
    You can now switch between your original config and this one effortlessly.


Option 2: Use This Config as Your Default

If you don’t have an existing Neovim configuration or don’t mind replacing it, follow these steps:

  1. Backup Your Existing Config (Optional): If you want to save your current setup, back it up first:

    mv ~/.config/nvim ~/.config/nvim-backup
  2. Clone the Repository:

    git clone https://github.com/lmilojevicc/nvim-config ~/.config/nvim
  3. Launch Neovim: Simply run:

    nvim
  4. Install Plugins: Install the plugins by running the following command:

    :Lazy sync
    

πŸ› οΈ Requirements

Make sure you have the following installed on your system before using this configuration:

  • Nerd font of your choice
  • Neovim
  • External tools:
    • fd
    • fzf
    • git
    • node
    • ripgrep
    • lazygit

πŸ“‚ Directory Structure

.
β”œβ”€β”€ 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
        └── ...

πŸ’‘ Tips & Tricks

  • <Space> is used as the leader key by default
  • Use <leader>wk to search through key bindings

About

Where productivity meets procrastination

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages