-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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** | ||
Check failure on line 31 in README.md GitHub Actions / checksEmphasis used instead of a heading
|
||
|
||
## 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 | ||
{ "<leader>R", hidden = true }, | ||
{ "<leader>RG", "<cmd>GrugFar<cr>", desc = "Open" }, | ||
{ "<leader>Rg", "<cmd>lua require('grug-far').open({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Open (Limit to current file)"}, | ||
{ "<leader>Rw", "<cmd>lua require('grug-far').open({ prefills = { search = vim.fn.expand('<cword>') } })<cr>", desc = "Search word under cursor", }, | ||
{ "<leader>Rs", mode = "v", "<cmd>lua require('grug-far').with_visual_selection({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Search selection", }, | ||
{ "<leader>X", "", desc = "Search & Replace" }, | ||
{ "<leader>XG", "<cmd>GrugFar<cr>", desc = "Open" }, | ||
{ "<leader>Xg", "<cmd>lua require('grug-far').open({ prefills = { paths = vim.fn.expand('%') } })<cr>", desc = "Open (Limit to current file)"}, | ||
{ "<leader>Xw", "<cmd>lua require('grug-far').open({ prefills = { search = vim.fn.expand('<cword>') } })<cr>", desc = "Search word under cursor", }, | ||
{ "<leader>Xs", mode = "v", "<cmd>lua require('grug-far').with_visual_selection({ prefills = { paths = vim.fn.expand('%') } })<cr>", 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. |