From 9245d77dbb7c693b25e2c73a9020b3a0aec9d041 Mon Sep 17 00:00:00 2001 From: abxh <83485102+abxh@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:06:26 +0000 Subject: [PATCH 1/2] Improve README.md --- README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d6c916..c822404 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 = { From 1694bb3190af875fdaff59b46b24914110ace3a6 Mon Sep 17 00:00:00 2001 From: abxh <83485102+abxh@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:16:00 +0000 Subject: [PATCH 2/2] fix comment sign --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c822404..c12ca2b 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ To set up and install `activate.nvim` with `lazy.nvim`, the following can be use ```lua -- ~/.config/nvim/init.lua -// Map leader key to or a key of your choice. +-- Map leader key to or a key of your choice. vim.g.mapleader = "" vim.g.maplocalleader = ""