diff options
Diffstat (limited to 'lua/plugins/misc.lua')
| -rw-r--r-- | lua/plugins/misc.lua | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/lua/plugins/misc.lua b/lua/plugins/misc.lua index 37185ae..74eff58 100644 --- a/lua/plugins/misc.lua +++ b/lua/plugins/misc.lua @@ -47,4 +47,63 @@ return { }) end, }, + -- { + -- "mini.indentscope", + -- for_cats = "ui", + -- event = { "BufReadPre", "BufNewFile" }, + -- after = function() + -- require("mini.indentscope").setup({ symbol = "│" }) + -- end, + -- }, + { + "hlchunk.nvim", + for_cats = "ui", + event = { "BufReadPre", "BufNewFile" }, + after = function() + local ignored_filetypes = { + gitcommit = true, + oil = true, + Neogitstatus = true, + TelescopePrompt = true, + NvimTree = true, + help = true, + } + + require("hlchunk").setup({ + chunk = { + enable = true, + priority = 15, + style = { + vim.api.nvim_get_hl(0, { name = "IndentBlanklineIndent1" }), + vim.api.nvim_get_hl(0, { name = "DiagnosticError" }), + }, + use_treesitter = true, + chars = { + horizontal_line = "─", + vertical_line = "│", + left_top = "╭", + left_bottom = "╰", + right_arrow = "─", + }, + textobject = "", + exclude_filetypes = ignored_filetypes, + max_file_size = 1024 * 1024, + error_sign = true, + -- animation related + duration = 200, + delay = 300, + }, + indent = { + enable = true, + priority = 10, + style = { vim.api.nvim_get_hl(0, { name = "Whitespace" }) }, + use_treesitter = true, + exclude_filetypes = ignored_filetypes, + chars = { "│" }, + ahead_lines = 5, + delay = 100, + }, + }) + end, + }, } |
