diff --git a/README.md b/README.md index 8d6c916..c12ca2b 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,43 @@ return { -- "cbochs/grapple.nvim" } ``` +## Reset neovim + +If you want to reset neovim to a fresh state, remove the `~/.local/nvim/share` and `~/.local/nvim/state` directories. ## Installation -For `lazy.nvim`, add this config to `~/.config/nvim/lua/plugins/activate.lua`: +To set up and install `activate.nvim` with `lazy.nvim`, the following can be used: ```lua +-- ~/.config/nvim/init.lua + +-- Map leader key to or a key of your choice. +vim.g.mapleader = "" +vim.g.maplocalleader = "" + +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) +require("lazy").setup(require("plugins")) +``` +```lua +-- ~/.config/nvim/lua/plugins/init.lua +return { + require("plugins.activate"), +} +``` +```lua +-- ~/.config/nvim/lua/plugins/activate.lua return { "roobert/activate.nvim", keys = {