From fe271707d01138eb29000f6c701cdbdb9e815e0e Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 16 Jan 2025 01:39:26 +0100 Subject: [PATCH] docs: Update README --- README.md | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/README.md b/README.md index 70ccc535..23a9817d 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,78 @@ ![SXOsw.png](https://s7.gifyu.com/images/SXOsw.png) +**Terminal**: [ghostty](https://s7.gifyu.com/images/SXOsw.png) +**Font**: [Comic Code Ligatures](https://tosche.net/fonts/comic-code) +**Neovim Theme**: default + **README WIP** +## Customization + +⚠️ This is primarly my personal config + +If you want to use my config there is the `./lua/vnext/extra/` folder that is loaded by lazy.nvim. The LazySpecs in this folder are merged with the "defaul" LazySpecs in the `./lua/vnext/plugins/` folder. Some examples you can do: + +Disable a plugin: + +```lua +return { + { + "Bekaboo/dropbar.nvim", + enabled = false, + }, +} +``` + +Add new options to a plugin: + +```lua +return { + { + "echasnovski/mini.surround", + opts = { + search_method = 'nearest', + }, + } +} +``` + +Overwrite options of a plugin: + +```lua +return { + { + "L3MON4D3/LuaSnip", + opts = { + -- define your own snippets folder + snippets_path = { vim.fn.expand("~/mySnips") }, + }, + }, +} +``` + +Change keys of a plugin: + +```lua +return { + { + "MagicDuck/grug-far.nvim", + keys = { + -- stylua: ignore start + { "R", hidden = true }, + { "RG", "GrugFar", desc = "Open" }, + { "Rg", "lua require('grug-far').open({ prefills = { paths = vim.fn.expand('%') } })", desc = "Open (Limit to current file)"}, + { "Rw", "lua require('grug-far').open({ prefills = { search = vim.fn.expand('') } })", desc = "Search word under cursor", }, + { "Rs", mode = "v", "lua require('grug-far').with_visual_selection({ prefills = { paths = vim.fn.expand('%') } })", desc = "Search selection", }, + { "X", "", desc = "Search & Replace" }, + { "XG", "GrugFar", desc = "Open" }, + { "Xg", "lua require('grug-far').open({ prefills = { paths = vim.fn.expand('%') } })", desc = "Open (Limit to current file)"}, + { "Xw", "lua require('grug-far').open({ prefills = { search = vim.fn.expand('') } })", desc = "Search word under cursor", }, + { "Xs", mode = "v", "lua require('grug-far').with_visual_selection({ prefills = { paths = vim.fn.expand('%') } })", desc = "Search selection", }, + -- stylua: ignore end + }, + }, +} +``` + Check out my [blog post](https://rootknecht.net/blog/debloating-neovim-config/) to learn more about the reasons behind this big change. You can find the previous version in the [v1](https://github.com/Allaman/nvim/tree/v1) branch.