Skip to content

Latest commit

 

History

History
107 lines (72 loc) · 2.1 KB

installation.md

File metadata and controls

107 lines (72 loc) · 2.1 KB
sidebar_position
2

🛠️ Installation

You can find a starter template for LazyVim here

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Install the LazyVim Starter

  • Make a backup of your current Neovim files:

    # required
    mv ~/.config/nvim{,.bak}
    
    # optional but recommended
    mv ~/.local/share/nvim{,.bak}
    mv ~/.local/state/nvim{,.bak}
    mv ~/.cache/nvim{,.bak}
  • Clone the starter

    git clone https://github.com/LazyVim/starter ~/.config/nvim
  • Remove the .git folder, so you can add it to your own repo later

    rm -rf ~/.config/nvim/.git
  • Start Neovim!

    nvim

    Refer to the comments in the files on how to customize LazyVim.

Install the LazyVim Starter with PowerShell

  • Make a backup of your current Neovim files:

    # required
    Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak
    
    # optional but recommended
    Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak
  • Clone the starter

    git clone https://github.com/LazyVim/starter $env:LOCALAPPDATA\nvim
  • Remove the .git folder, so you can add it to your own repo later

    Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force
  • Start Neovim!

    nvim

    Refer to the comments in the files on how to customize LazyVim.

docker run -w /root -it --rm alpine:edge sh -uelic '
  apk add git lazygit fzf curl neovim ripgrep alpine-sdk --update
  git clone https://github.com/LazyVim/starter ~/.config/nvim
  cd ~/.config/nvim
  nvim
'

:::tip

It is recommended to run :LazyHealth after installation. This will load all plugins and check if everything is working correctly.

:::