From 3bbc7d221417b3cc65d24aeacd849d2302c1ef11 Mon Sep 17 00:00:00 2001 From: whitney-server Date: Sun, 22 Sep 2024 05:37:32 +0000 Subject: [PATCH] update README --- lazyvim/README.md | 1 + neovim/README.md | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lazyvim/README.md b/lazyvim/README.md index 45fa341..557b4fb 100644 --- a/lazyvim/README.md +++ b/lazyvim/README.md @@ -24,6 +24,7 @@ gh repo clone runyanjake/lazyvim ~/repositories/lazyvim ``` 4. Link all nvim related items to the nvim config folder. ``` +mkdir ~/.config/nvim ln -sfn /path/to/dotfiles/lazyvim/stylua.toml ~/.config/nvim/stylua.toml ln -sfn /path/to/dotfiles/lazyvim/lua ~/.config/nvim/lua ln -sfn /path/to/dotfiles/lazyvim/init.lua ~/.config/nvim/init.lua diff --git a/neovim/README.md b/neovim/README.md index 13e1e19..ed9c6b0 100644 --- a/neovim/README.md +++ b/neovim/README.md @@ -21,14 +21,19 @@ My nvim configuration for neovim on ubuntu. Sort of superceded by nvim config. ### First Time Setup 1. Install the latest version of Neovim from the Neovim Launchpad PPA. Ubuntu apt has an older version, and since then much has changed, so we'll prefer the latest stable from the PPA. -- `sudo add-apt-repository ppa:neovim-ppa/stable` -- `sudo apt update` -- `sudo apt install neovim` +``` +sudo add-apt-repository ppa:neovim-ppa/stable +sudo apt update +sudo apt install neovim +``` 2. Ensure that the nvim runtimepath is correctly configured to include `~/.config.nvim`. You can check that by executing this nvim command: `:echo &runtimepath`. 3. Both `init.lua` as well as the `lua/` folder and its contents should be symlinked to `~/.config/nvim` (Might need to create the nvim folder if first time). -- `ln -sfn /path/to/dotfiles/neovim/init.lua ~/.config/nvim/init.lua` -- `ln -sfn /path/to/dotfiles/neovim/lua ~/.config/nvim/lua` +``` +mkdir ~/.config/nvim +ln -sfn /path/to/dotfiles/neovim/init.lua ~/.config/nvim/init.lua +ln -sfn /path/to/dotfiles/neovim/lua ~/.config/nvim/lua +``` The next time vim is opened, the config changes will apply. ### Configuration