hlchunk has better perf :3

This commit is contained in:
foxora 2026-03-21 12:51:34 +00:00
parent 592e6f021d
commit ab94f48294
5 changed files with 42 additions and 44 deletions

View file

@ -0,0 +1,36 @@
return {
{
"hlchunk.nvim",
enabled = nixCats("ui.hlchunk") or false,
after = function(plugin)
require("hlchunk").setup({
chunk = {
enable = true,
use_treesitter = true,
chars = {
horizontal_line = "",
vertical_line = "",
left_top = "",
left_bottom = "",
right_arrow = "",
},
style = {
"#B0F0FA",
},
},
indent = {
enable = true,
use_treesitter = false,
ahead_lines = 10,
delay = 25,
chars = {
"",
},
style = {
"#9080FA",
},
},
})
end,
},
}

View file

@ -1,30 +0,0 @@
local config = {
debounce = 25,
indent = {
char = "",
smart_indent_cap = true,
},
scope = {
show_start = true,
show_end = true,
show_exact_scope = false,
injected_languages = true,
},
}
return {
{
"indent-blankline.nvim",
enabled = nixCats("ui.indent-blankline") or false,
after = function(plugin)
require("ibl").setup(config)
vim.api.nvim_create_autocmd("User", {
pattern = "RefreshIndentBlankline",
callback = function()
require("ibl").setup(config)
end,
})
end,
},
}

View file

@ -8,5 +8,5 @@ require("lze").load({
{ import = "plugins.comment" },
{ import = "plugins.git" },
{ import = "plugins.lualine" },
{ import = "plugins.indent-blankline" },
{ import = "plugins.hlchunk" },
})