Skip to content

Commit c73eda0

Browse files
radiolradiolmehalter
authored
feat(indent): add chunk highlight like hlchunk with snacks.nvim (#1413)
* feat(recipes): add chunk highlight like hlchunk with snacks.nvim Add a recipe that simulates hlchunk.nvim's chunk visualization using snacks.nvim. * chore(indent): move snacks-highlight-chunk to indent category * Update lua/astrocommunity/indent/snacks-highlight-chunk/init.lua --------- Co-authored-by: radiol <[email protected]> Co-authored-by: Micah Halter <[email protected]>
1 parent 2cb289f commit c73eda0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# snacks-indent-hlchunk
2+
3+
A recipe to replicate `hlchunk.nvim`-style indent chunk highlighting using [ folke/snacks.nvim ](https://github.com/folke/snacks.nvim).
4+
5+
This setup enables visual chunk borders with rounded corners and lines (╭─╰│), providing a lightweight alternative to [ shellRaining/hlchunk.nvim ](https://github.com/shellRaining/hlchunk.nvim).
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
return {
2+
"folke/snacks.nvim",
3+
opts = {
4+
indent = {
5+
enabled = true,
6+
chunk = {
7+
enabled = true,
8+
char = {
9+
corner_top = "",
10+
corner_bottom = "",
11+
horizontal = "",
12+
vertical = "",
13+
arrow = ">",
14+
},
15+
},
16+
},
17+
},
18+
}

0 commit comments

Comments
 (0)